fix some bugs

This commit is contained in:
Philipp Kühn
2020-10-23 23:41:54 +02:00
parent b4c231d85c
commit 98580b2149
3 changed files with 10 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ const TextAlign = createExtension({
style: `text-align: ${attributes.textAlign}`,
}),
parseHTML: node => ({
textAlign: node.style.textAlign,
textAlign: node.style.textAlign || 'left',
}),
},
},