add comments to all commands
This commit is contained in:
@@ -48,6 +48,9 @@ const Highlight = createMark({
|
||||
|
||||
addCommands() {
|
||||
return {
|
||||
/**
|
||||
* Toggle a highlight mark
|
||||
*/
|
||||
highlight: (attributes?: { color: string }): Command => ({ commands }) => {
|
||||
return commands.toggleMark('highlight', attributes)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user