merge attributes

This commit is contained in:
Philipp Kühn
2020-10-23 15:02:52 +02:00
parent e01a0b8484
commit ecadf7ea0a
4 changed files with 32 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ const Paragraph = createNode({
// align: {
// default: 'right',
// renderHTML: attributes => ({
// class: 'global',
// class: 'foo',
// style: `text-align: ${attributes.align}`,
// }),
// },
@@ -31,8 +31,8 @@ const Paragraph = createNode({
// default: '123',
// rendered: true,
// renderHTML: attributes => ({
// class: `foo-${attributes.id}`,
// id: 'foo',
// class: 'bar',
// style: 'color: red',
// }),
// },
// }