add color parameter to highlight command

This commit is contained in:
Hans Pagel
2020-10-05 16:17:31 +02:00
parent b5359a305f
commit 021d911ad6
3 changed files with 22 additions and 7 deletions

View File

@@ -34,8 +34,8 @@ export default new Mark()
}, 0],
}))
.commands(({ name }) => ({
highlight: () => ({ commands }) => {
return commands.toggleMark(name)
highlight: attrs => ({ commands }) => {
return commands.toggleMark(name, attrs)
},
}))
.keys(({ editor }) => ({