rename addMark to setMark

This commit is contained in:
Philipp Kühn
2020-11-18 17:36:00 +01:00
parent 1b45acd5d5
commit e3a3d99c51
11 changed files with 17 additions and 17 deletions

View File

@@ -48,7 +48,7 @@ const Strike = Mark.create({
* Set a strike mark
*/
setStrike: (): Command => ({ commands }) => {
return commands.addMark('strike')
return commands.setMark('strike')
},
/**
* Toggle a strike mark
@@ -60,7 +60,7 @@ const Strike = Mark.create({
* Unset a strike mark
*/
unsetStrike: (): Command => ({ commands }) => {
return commands.addMark('strike')
return commands.removeMark('strike')
},
}
},