refactoring
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user