-
Hi there, thanks so much for all your work with Plate! I'm reading the documentation and trying to understand how everything works and I'm having trouble finding a definite answer if it's possible to save the Plate returned data as HTML.
As a secondary solution I'm using what it's being done in this Sandbox example but as you can see you get a Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 17 replies
-
Same things for me. I can't figure out how to do a simple thing like |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what's causing the warning about The reason you can't use I don't know why In the meantime, here are some solutions you can try:
|
Beta Was this translation helpful? Give feedback.
-
We are encountering the same issue. Basically we have to think of hacks to work around the The function's dependency on the My intention is not to flame on the maintainers, but instead to provide some feedback for possible improvements. |
Beta Was this translation helpful? Give feedback.
-
my mind has been absolutely fried going down the rabbit hole of trying to implement a simple react form with a plate editor that serializes the plate contents to html so that it can be consumed by |
Beta Was this translation helpful? Give feedback.
-
I have still same issue, could you please provide example of the full code of the editor with serializing to html |
Beta Was this translation helpful? Give feedback.
-
Thanks, I utilized that approach but I spent two days for searching to serialize to HTML and lost it proper way, I was getting "invalid hook call" error and I didn't misuse any hook I think its inside the serializeHtml function, but now I stored the editor's value as a JSON string. |
Beta Was this translation helpful? Give feedback.
-
same invalid hook call issue with both serializeHtml and api.reactHtml.serialize calls |
Beta Was this translation helpful? Give feedback.
-
We are deprecating You can find a detailed guide here. And the complete example including export to HTML, Tailwind CSS, and Prism. |
Beta Was this translation helpful? Give feedback.
-
Hello. How can I serialize plate to html? I installed plate using this command: I tried like this but it doesnt work. Docs didnt help me, there is only about createSlateEditor:
|
Beta Was this translation helpful? Give feedback.
We are deprecating
@udecode/plate-html
. TheserializeHtml
function has been migrated to@udecode/plate-core
and@udecode/plate-common
. The migration process for this stable fix requires creating a static version of all your components, that will make it work SSR.You can find a detailed guide here. And the complete example including export to HTML, Tailwind CSS, and Prism.