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

@@ -45,9 +45,9 @@ const Italic = Mark.create({
addCommands() {
return {
/**
* Add an italic mark
* Set an italic mark
*/
addItalic: (): Command => ({ commands }) => {
setItalic: (): Command => ({ commands }) => {
return commands.addMark('italic')
},
/**
@@ -57,9 +57,9 @@ const Italic = Mark.create({
return commands.toggleMark('italic')
},
/**
* Remove an italic mark
* Unset an italic mark
*/
removeItalic: (): Command => ({ commands }) => {
unsetItalic: (): Command => ({ commands }) => {
return commands.addMark('italic')
},
}