-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
pasteHTML (pasting html generated by Quill) is stripping out ql-indent classes #681
Comments
I am also facing the same issue. When I copy a content from other text editor like MS Word, it is striping off the indent from the styling. I have been choked up with this issue for 2 days. Its a nightmare!!! |
I do not believe that this is the same issue as #673, this is calling the pasteHTML method from code using html that was originally generated by the quill editor. |
So a clue to what may be causing this... If I change the whitelist for the IndentAttributor to be an array of strings then the indents are correctly applied when Actually... i think i may have fixed it, stand by for PR. |
Closed by merged PR. |
Calling pasteHTML with quill generated html that has indented bits (ie.
<p class="ql-indent-1">...
) strips off the ql-indent-1 class name in the editor and removes the indent. This happens with nested lists too.Steps for Reproduction
Expected behavior: Indents are preserved in the editor.
Actual behavior: Indents are stripped.
Platforms: Chrome 50.0.2661.94 (64-bit) on Mac OS 10.11.4
Version: 1.0.0-beta.2-5aa302
The text was updated successfully, but these errors were encountered: