UNPKG

@toast-ui/editor

Version:

GFM Markdown Wysiwyg Editor - Productive and Extensible

36 lines (31 loc) 713 B
import { ResolvedPos } from 'prosemirror-model'; import { Selection } from 'prosemirror-state'; export type WwNodeType = | 'text' | 'paragraph' | 'heading' | 'codeBlock' | 'bulletList' | 'orderedList' | 'listItem' | 'table' | 'tableHead' | 'tableBody' | 'tableRow' | 'tableHeadCell' | 'tableBodyCell' | 'blockQuote' | 'thematicBreak' | 'image' | 'hardBreak' | 'lineBreak' | 'customBlock' | 'frontMatter' | 'widget' | 'html'; export type WwMarkType = 'strong' | 'emph' | 'strike' | 'link' | 'code' | 'html'; export interface CellSelection extends Selection { startCell: ResolvedPos; endCell: ResolvedPos; } export type ColumnAlign = 'left' | 'right' | 'center';