remove list option

This commit is contained in:
Philipp Kühn
2020-11-02 11:18:44 +01:00
parent bfc58caea5
commit 3dc25640c9
5 changed files with 1 additions and 13 deletions

View File

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

View File

@@ -9,5 +9,5 @@ export default function isList(name: string, extensions: Extensions) {
return false
}
return extension.list
return extension.group === 'list'
}