add new commands to all extensions

This commit is contained in:
Philipp Kühn
2018-10-28 21:59:08 +01:00
parent d2519c2953
commit dcba6686dc
16 changed files with 37 additions and 38 deletions

View File

@@ -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 }) {