Could be the deserializers to be NodeJS compatible? #1280
Hideman85
started this conversation in
Feature Requests
Replies: 1 comment
-
Next major version will extract the React components to another library but no plan yet for the deserializer. PR's welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is something I really like on Slate, you have the core that you could use both in browser & NodeJS env and you have slate-react that is used on top of the core to give you some pre-built components.
It would be great to decouple this also in the plugins project.
I tried to use the predefined plugins with
deserializeHTMLToDocumentFragment
in NodeJS and got the errordocument is undefined
, after looking the code I found you use document to convert an HTML string in DOM so I used JSDOM in NodeJS to do the same but I gotNode is undefined
. Node is used to check the type of the element and JSDOM provide also this (basically it provide the main part of DOM manipulation abstraction)I'm using the version
0.72.6
of the library I don't know yet if this has been done in a more recent version.Beta Was this translation helpful? Give feedback.
All reactions