This commit is contained in:
Philipp Kühn
2020-11-17 22:45:56 +01:00
parent 786c86f4b8
commit 91377be21e
6 changed files with 22 additions and 22 deletions

View File

@@ -59,9 +59,9 @@ const Highlight = Mark.create({
addCommands() {
return {
/**
* Set a highlight mark
* Add a highlight mark
*/
setHighlight: (attributes?: { color: string }): Command => ({ commands }) => {
addHighlight: (attributes?: { color: string }): Command => ({ commands }) => {
return commands.addMark('highlight', attributes)
},
/**
@@ -71,9 +71,9 @@ const Highlight = Mark.create({
return commands.toggleMark('highlight', attributes)
},
/**
* Set a highlight mark
* Remove a highlight mark
*/
unsetHighlight: (): Command => ({ commands }) => {
removeHighlight: (): Command => ({ commands }) => {
return commands.removeMark('highlight')
},
}