node-quill-converter icon indicating copy to clipboard operation
node-quill-converter copied to clipboard

"paste" converted HTML into quill before returning delta

Open Xiphe opened this issue 7 years ago • 2 comments

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 QUILL so 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]

Xiphe avatar Nov 15 '18 15:11 Xiphe

Any news @joelcolucci ?

Xiphe avatar Dec 20 '18 10:12 Xiphe

Hey @Xiphe No excuses for the delay. I am reviewing this now and will have an update shortly.

joelcolucci avatar Dec 23 '18 15:12 joelcolucci