feat: parseHTML for attributes should return the value instead of an object now, fix #1863
This commit is contained in:
@@ -37,9 +37,7 @@ export const TextAlign = Extension.create<TextAlignOptions>({
|
||||
attributes: {
|
||||
textAlign: {
|
||||
default: this.options.defaultAlignment,
|
||||
parseHTML: element => ({
|
||||
textAlign: element.style.textAlign || this.options.defaultAlignment,
|
||||
}),
|
||||
parseHTML: element => element.style.textAlign || this.options.defaultAlignment,
|
||||
renderHTML: attributes => {
|
||||
if (attributes.textAlign === this.options.defaultAlignment) {
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user