Allow custom serialization in a plugin #305
Closed
zbeyens
started this conversation in
Feature Requests
Replies: 2 comments 9 replies
-
took a stab at adding this functionality as it's something we could use ourselves. thoughts or feedback? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Will be released in a few days, thanks a lot! |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment, the serialization process just takes a snapshot of
renderElement
/renderLeaf
for each plugin. However, sometimes the desired HTML is not the same than the rendered React element.Proposition:
serialize
field in the plugin interface, following the same principle thandeserialize
field.serialize
function is provided, it will be used instead of the default serialization.Beta Was this translation helpful? Give feedback.
All reactions