-
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: 4 comments 5 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'm not sure what's causing the warning about
useLayoutEffect
; it seems to be a problem relating to SSR in slate-react. It should be safe to ignore if you're not using SSR in your app. In reality, you probably won't be callingserializeHtml
on every render anyway, and certainly not when rendering on the server.The reason you can't use
editor
in theonChange
handler of yourPlate
component is because the editor state is only available inside thePlate
component (orPlateProvider
if you're using it). This is consistent with how state normally works in React: you can't access state higher up in the component tree than it's defined unless you pass it up manually using callbacks.I don't know…