add basic text align extension
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user