can I export Lexical TextNode (extended) as DOM TextNode with exportDOM? #3901
Unanswered
YusukeSuzuki
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Well, the type of DOMExportOutput is an object, so you'd need to use the commented out line that you have: https://lexical.dev/docs/api/modules/lexical#domexportoutput What error is it causing? Are you using the Node Overrides API? https://lexical.dev/docs/concepts/node-replacement |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my application I need to export a Lexical TextNode as a DOM Text node.
I have created a CustomTextNode class and implemented exportDOM() as follows, but it does not work. is there any way to export the DOM Text node? If it doesn't exist, I would like to manipulate the DOM after exporting to remove the span tags, but I would like to complete this in the custom node code if possible.
Beta Was this translation helpful? Give feedback.
All reactions