rename some commands

This commit is contained in:
Philipp Kühn
2020-11-18 16:59:58 +01:00
parent 91297d29fb
commit 1b45acd5d5
10 changed files with 35 additions and 35 deletions

View File

@@ -46,9 +46,9 @@ const Bold = Mark.create({
addCommands() {
return {
/**
* Add a bold mark
* Set a bold mark
*/
addBold: (): Command => ({ commands }) => {
setBold: (): Command => ({ commands }) => {
return commands.addMark('bold')
},
/**
@@ -58,9 +58,9 @@ const Bold = Mark.create({
return commands.toggleMark('bold')
},
/**
* Remove a bold mark
* Unset a bold mark
*/
removeBold: (): Command => ({ commands }) => {
unsetBold: (): Command => ({ commands }) => {
return commands.removeMark('bold')
},
}