-
Notifications
You must be signed in to change notification settings - Fork 938
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
Cannot store and display whitespace #311
Comments
We'd take a PR to add a preserveWhitespace (or similar) option - it sounds like creating a |
Are there any updates or workarounds for this issue? |
Still no update regarding this issue? |
Still no update regarding this issue? |
Anyone have a workaround here? Tried to add |
In my case, I managed to make it work by doing this:
Note the use of |
I noticed a strange bug when attempting to save and re-render html from quill. I am using React Quill v1.2.3
Right now it is impossible to store and display a string with more than one tab or space in a row.
Here is a link to a comment from LDFM who also experienced this same problem:
slab/quill#1751 (comment)
LFDM pointed out that the line that is causing this issue is:
https://github.com/zenoamaro/react-quill/blob/master/src/mixin.js#L68
Since dangerouslyPasteHTML is called, the whitespace get's collapsed down to a single space but jhchen's comment towards the end of that same issue linked above seems to point to a solution.
slab/quill#1751 (comment)
Thanks for your help!
The text was updated successfully, but these errors were encountered: