fix: remove some magic strings
This commit is contained in:
@@ -62,6 +62,7 @@ export const TextAlign = Extension.create<TextAlignOptions>({
|
||||
|
||||
return this.options.types.every(type => commands.updateAttributes(type, { textAlign: alignment }))
|
||||
},
|
||||
|
||||
unsetTextAlign: () => ({ commands }) => {
|
||||
return this.options.types.every(type => commands.resetAttributes(type, 'textAlign'))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user