add some more commands

This commit is contained in:
Philipp Kühn
2020-09-21 23:17:30 +02:00
parent 778e064979
commit 4da71ecfbb
27 changed files with 207 additions and 210 deletions

View File

@@ -18,12 +18,12 @@ export default new Mark()
],
toDOM: () => ['code', 0],
}))
.commands(({ editor, name }) => ({
code: next => () => {
editor.toggleMark(name)
next()
},
}))
// .commands(({ editor, name }) => ({
// code: next => () => {
// editor.toggleMark(name)
// next()
// },
// }))
.keys(({ editor }) => ({
'Mod-`': () => editor.code()
}))