node-quill-converter
node-quill-converter copied to clipboard
"paste" converted HTML into quill before returning delta
This way the delta should not change when loaded into a quill instance running in a browser.
⚠️ breaking change
This likely alters the result of any convertHtmlToDelta conversion. Depending of what people are doing with the delta this might break things.
If you'd prefer to provide a non-breaking fix I could alter this PR by either
- introducing a flag like
convertHtmlToDelta(html, exact) - introducing a fourth method like
convertHtmlToExactDelta(html) - just exporting
QUILLso that I can do this on my own :)
I decided to go with the breaking change since I think this should be the default behaviour and as a consumer I would expect the library to work this way.
fix #3 | pre-published as @xiphe/[email protected]
Any news @joelcolucci ?
Hey @Xiphe No excuses for the delay. I am reviewing this now and will have an update shortly.