-
Notifications
You must be signed in to change notification settings - Fork 898
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
fix:311-add preserveWhitespace prop #407
fix:311-add preserveWhitespace prop #407
Conversation
@alexkrolick does this PR look reasonable? It would be nice to have it merged, we are facing a annoying bug because of this. |
Does it work after restoring the content? I thought Quill would ultimately collapse whitespace by itself. |
Yes, it does work after restoring the content. Quill has a check for |
Yes please |
@alexkrolick here is an working example of the |
Hey! It's very nice to have someone working on this issue. I had some trouble with whitespaces as well. But I have to bring my point of view on this issue. We should notice that using a |
@ramospedro Thanks for your inputs.
I would disagree. If you check the this line in Quill, it specifically checks for a I agree that passing a Do you have any suggestion around how we can fix this in a better way? |
Sorry I didn't notice this before. So, according to this, Quill.js explicitly removes whitespaces only when it's not a |
Thanks, let's go with this then. |
Adds
preserveWhitespace
prop as discussed in #311