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

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