UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

58 lines (56 loc) 1.05 kB
import { AttributeSpec, MarkSpec, Node, NodeSpec, ParseRule, Schema } from '../prosemirror'; import { paragraph, createSchema } from '../schema'; export { AttributeSpec, MarkSpec, Node, NodeSpec, ParseRule, Schema }; export default createSchema({ nodes: [ 'doc', 'applicationCard', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'hardBreak', 'mention', 'emoji', 'image', 'media', 'mediaGroup', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'singleImage', 'plain', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', ], marks: [ 'em', 'strong', 'code', 'strike', 'underline', 'link', 'mentionQuery', 'subsup', 'emojiQuery', 'textColor', ], customNodeSpecs: { plain: { ...paragraph, content: 'text*' } } });