Convert nodes into HTML format #1941
-
This might be a naive question, is there a way to convert an editors state into HTML elements programmatically? I am thinking something like what slateJS has - https://docs.slatejs.org/concepts/10-serializing#html. I can see this being a potential issue with custom decorator nodes. I have tried My user case for this is rendering the content in the database (which has been saved as I have achieved this at the moment by rendering a "Preview" version of my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not really an answer but it's a work in progress -> #1834 The fundamentals exists (as private functions) inside @lexical/clipboard but they have to structured in a proper way so that we can offer an ergonomic API that beyond copy-paste |
Beta Was this translation helpful? Give feedback.
Not really an answer but it's a work in progress -> #1834
The fundamentals exists (as private functions) inside @lexical/clipboard but they have to structured in a proper way so that we can offer an ergonomic API that beyond copy-paste