feat: add resetAttributes() command, deprecate resetNodeAttributes()

This commit is contained in:
Philipp Kühn
2021-04-07 21:30:55 +02:00
parent 41a044417e
commit 3334d930f3
5 changed files with 68 additions and 2 deletions

View File

@@ -59,7 +59,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.resetNodeAttributes(type, 'textAlign'))
return this.options.types.every(type => commands.resetAttributes(type, 'textAlign'))
},
}
},