Update README.md

Fixes: `commands` should return a function which returns `toggleWrap(type)`
This commit is contained in:
Beep LIN
2018-11-20 10:58:51 +08:00
committed by GitHub
parent 5e6f580f25
commit 78b727213c

View File

@@ -333,7 +333,7 @@ export default class BlockquoteNode extends Node {
// `type` is the prosemirror schema object for this blockquote
// `schema` is a collection of all registered nodes and marks
commands({ type, schema }) {
return toggleWrap(type)
return () => toggleWrap(type)
}
// here you can register some shortcuts