Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"paste" converted HTML into quill before returning delta #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Xiphe
Copy link

@Xiphe Xiphe commented Nov 15, 2018

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/node-quill-converter@0.3.3-RC.1

@Xiphe Xiphe changed the title Fix/3 "paste" converted HTML into quill before returning delta Nov 15, 2018
by setting delta as content to quill and then returning the content

fix joelcolucci#3

BREAKING CHANGE:
This likely alters the result of any convertHtmlToDelta conversion.
Depending of what people are doing with the delta this might break things.
@Xiphe
Copy link
Author

Xiphe commented Dec 20, 2018

Any news @joelcolucci ?

@joelcolucci
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

convertHtmlToDelta does not create the exact delta that quill works with
2 participants