refactoring

This commit is contained in:
Philipp Kühn
2020-10-22 09:14:24 +02:00
parent 5dcbdebbb7
commit faa65b5450
6 changed files with 27 additions and 148 deletions

View File

@@ -73,6 +73,7 @@ export default createNode({
align: {
default: 'right',
renderHTML: attributes => ({
class: 'global',
style: `text-align: ${attributes.align}`,
}),
},
@@ -87,7 +88,7 @@ export default createNode({
default: '123',
rendered: true,
renderHTML: attributes => ({
class: `foo-${attributes.id}`,
// class: `foo-${attributes.id}`,
id: 'foo',
}),
},