refactoring

This commit is contained in:
Philipp Kühn
2020-10-21 21:01:39 +02:00
parent 2ebf4bf790
commit 10e16208f9
3 changed files with 51 additions and 36 deletions

View File

@@ -79,6 +79,11 @@ export interface NodeExtensionSpec<Options = {}, Commands = {}> extends Extensio
group?: NodeSpec['group'],
inline?: NodeSpec['inline'],
atom?: NodeSpec['atom'],
selectable?: NodeSpec['selectable'],
draggable?: NodeSpec['draggable'],
code?: NodeSpec['code'],
defining?: NodeSpec['defining'],
isolating?: NodeSpec['isolating'],
parseHTML?: () => NodeSpec['parseDOM'],
renderHTML?: (props: {
node: Node,
@@ -105,6 +110,11 @@ const defaultNode: NodeExtension = {
group: null,
inline: null,
atom: null,
selectable: null,
draggable: null,
code: null,
defining: null,
isolating: null,
createCommands: () => ({}),
parseHTML: () => null,
renderHTML: () => null,