fix a bug

This commit is contained in:
Philipp Kühn
2020-09-09 11:23:24 +02:00
parent a812dd47be
commit 22109170b3
3 changed files with 17 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ export default new Mark()
],
toDOM: () => ['strong', 0],
}))
.commands(({ editor, name }) => ({
.commands(({ editor, name, type }) => ({
bold: next => () => {
editor.toggleMark(name)
next()