How to get full HTML of a custom node created via Node View on editor.getHTML() call? #4712
Replies: 5 comments 1 reply
-
Screenshot of the same from console. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem, did you find a solution? |
Beta Was this translation helpful? Give feedback.
-
As a hack, I was able to make it work by directly fetching the HTML of the dom through
But as mentioned above, it is a hack, any future improvements or changes done in |
Beta Was this translation helpful? Give feedback.
-
i am having the same issue, any solution |
Beta Was this translation helpful? Give feedback.
-
Is there a solution? I have the same problem. I want to get HTML and then export it to Word through HTML rendering. |
Beta Was this translation helpful? Give feedback.
-
I have created a custom node and rendered it via NodeViewRenderer in React. But when calling the
editor.getHTML()
, only the value returned from therenderHTML()
is returned. Can anyone help how to add the JSX from the custom react component we add toaddNode
to thegetHTML()
call.Sample code:
Custom Sample Node Extension:
SampleNodeComponent.tsx:
Now when rendered and called
editor.getHTML()
it will return something as below which is the same syntax returned fromrenderHTML
method.Any one know how to add the
<h1>
tag of the custom node to thegetHTML()
?Beta Was this translation helpful? Give feedback.
All reactions