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

Quill drops prior formatting if you insert differently formatted text after it #423

Closed
nickretallack opened this issue Jul 21, 2015 · 2 comments

Comments

@nickretallack
Copy link

I found a way to break quill just by typing letters and clicking on the toolbar.

  1. Click Bold
  2. Click Italic
  3. Type a letter
  4. Click Bold
  5. Click Italic
  6. Type a letter

What I expect the document to look like: One bold+italic character followed by one normal character.

What I get instead: The previous character loses its boldness, so there's just one italic character followed by one normal character.

Oddly enough, Quill emits the edit that it actually did in the delta, even though it's not the edit that I wanted. This means the issue is happening pretty early in the pipeline.

@nickretallack nickretallack changed the title Quill loses formatting if you Quill drops prior formatting if you insert differently formatted text after it Jul 21, 2015
@nickretallack
Copy link
Author

Btw, this happens in Chrome. It doesn't happen in Firefox. I'm debugging it now. It has something to do with Chrome representing the document like this:

<div><i style="font-weight: bold">x</i></div>

instead of the document you might expect:

<div><b><i>x</i></b></div>

@willrowe
Copy link
Contributor

I can confirm this bug.

@jhchen jhchen closed this as completed in 3a6f2d4 Jul 23, 2015
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

No branches or pull requests

2 participants