add new commands to all extensions
This commit is contained in:
@@ -99,8 +99,8 @@ export default class CodeBlockHighlight extends Node {
|
||||
}
|
||||
}
|
||||
|
||||
command({ type, schema }) {
|
||||
return toggleBlockType(type, schema.nodes.paragraph)
|
||||
commands({ type, schema }) {
|
||||
return () => toggleBlockType(type, schema.nodes.paragraph)
|
||||
}
|
||||
|
||||
keys({ type }) {
|
||||
|
||||
Reference in New Issue
Block a user