fix: remove some magic strings
This commit is contained in:
@@ -52,13 +52,13 @@ export const Underline = Mark.create<UnderlineOptions>({
|
||||
addCommands() {
|
||||
return {
|
||||
setUnderline: () => ({ commands }) => {
|
||||
return commands.setMark('underline')
|
||||
return commands.setMark(this.name)
|
||||
},
|
||||
toggleUnderline: () => ({ commands }) => {
|
||||
return commands.toggleMark('underline')
|
||||
return commands.toggleMark(this.name)
|
||||
},
|
||||
unsetUnderline: () => ({ commands }) => {
|
||||
return commands.unsetMark('underline')
|
||||
return commands.unsetMark(this.name)
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user