add basic text align extension

This commit is contained in:
Philipp Kühn
2020-10-23 15:23:40 +02:00
parent ecadf7ea0a
commit 5976d6083c
7 changed files with 134 additions and 30 deletions

View File

@@ -8,36 +8,6 @@ const Paragraph = createNode({
content: 'inline*',
// addGlobalAttributes() {
// return [
// {
// types: ['paragraph'],
// attributes: {
// align: {
// default: 'right',
// renderHTML: attributes => ({
// class: 'foo',
// style: `text-align: ${attributes.align}`,
// }),
// },
// },
// },
// ]
// },
// addAttributes() {
// return {
// id: {
// default: '123',
// rendered: true,
// renderHTML: attributes => ({
// class: 'bar',
// style: 'color: red',
// }),
// },
// }
// },
parseHTML() {
return [
{ tag: 'p' },