add list option to nodes

This commit is contained in:
Philipp Kühn
2020-10-30 15:46:15 +01:00
parent 073ef2ee0d
commit e5e47aaa48
6 changed files with 31 additions and 10 deletions

View File

@@ -12,6 +12,11 @@ export interface NodeExtensionSpec<Options = {}, Commands = {}> extends Overwrit
*/
topNode?: boolean,
/**
* List
*/
list?: boolean,
/**
* Content
*/
@@ -158,6 +163,7 @@ const defaultNode: NodeExtension = {
type: 'node',
name: 'node',
topNode: false,
list: false,
content: null,
marks: null,
group: null,