Replies: 2 comments 3 replies
-
|
Hey @GuyoST - unfortunately, there is not a way to override this at the moment, except for just extending HeadingNode and creating CustomHeadingNode with a different exportDOM implementation. I think we should probably change the exportDOM method of HeadingNode and other nodes to preserve this information. PR would be welcome. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
This has been fixed now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I use to convert the data to HTML, I'm using $generateHTMLFromNodes.
I could add an
exportDOMfunction to some node (like the YouTubeNode), so it renders well in HTML.But I noticed that for basic nodes like HeadingNode, the format is ignored (for example if I insert an
H1title, and I center it, in the editor it has"style='text-align: center'". but when I use$generateHTMLFromNodesto export to HTML, the style is not included.I don't know if there is a way to have it , or if I can override the exportDOM function for HeadingNode or other nodes like this one ?
Thank you for your help :)
Beta Was this translation helpful? Give feedback.
All reactions