I found PlateJS has API to desrialize string html into editor values:
editor.api.html.deserialize({element:"<p>Hi!</P>"})
I need a method in reverse, so it takes the value after change and convert it to plain string html like:
"<p><strong>Hi!</strong> It's me.</p>"
How can I achieve this or convert children
to string?
onValueChange
pass a value with this type {value: ValueOf<E>}
where value has children
property.