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

@@ -36,9 +36,9 @@ const Code = Mark.create({
addCommands() {
return {
/**
* Add a code mark
* Set a code mark
*/
addCode: (): Command => ({ commands }) => {
setCode: (): Command => ({ commands }) => {
return commands.addMark('code')
},
/**
@@ -48,9 +48,9 @@ const Code = Mark.create({
return commands.toggleMark('code')
},
/**
* Remove a code mark
* Unset a code mark
*/
removeCode: (): Command => ({ commands }) => {
unsetCode: (): Command => ({ commands }) => {
return commands.addMark('code')
},
}