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

Rich text format being lost when pasting from clipboard on Firefox #2832

Open
StefanNedelchev opened this issue Nov 4, 2019 · 5 comments
Open

Comments

@StefanNedelchev
Copy link

When I copy rich text (for example from a Word Document) and paste it in Quill editor it should preserve the formatting (bold, italic, bullet lists, numbered lists, etc). While it works fine on Crhome I can't see it working on Firefox. When I paste rich text on Firefox it just gets converted to plain text and the only remaining thing from the original text are the newline symbols.

изображение

изображение

Steps for Reproduction

  1. Open one Chrome and one Firefox browser.
  2. Visit quilljs.com
  3. Copy soem formatted text from a docx document (having more formatted elements as buillet/numbered lists is prefered)
  4. Click inside the quill demo editor, select all with ctrl+A and paste the selected textwith ctrl+v. Do this on both browsers and compare the results

Expected behavior:
The text formatting should be preserved on both browsers.

Actual behavior:
The text formatting is preserved on Chrome while on Firefox it should be gone.

Platforms:
I'm currently working on a MAC (Catalina) with the latest versions of Chrome and Firefox so I'm not sure if the same can be reproduced on Windows.

Version:
1.3.7

@StefanNedelchev
Copy link
Author

StefanNedelchev commented Nov 5, 2019

Small update: I tried wiht Safari and it shows the same behavior as Chrome (the text format is fine). Another thing that had to point out is that I copy the text from Apple's Pages application (since I'm on MAC) which probably means that the input is being formatted from the app or the OS in the first place. I can't know if this is true so I think that this issue should be investigated further.

@sep8
Copy link

sep8 commented Nov 23, 2020

I had the same problem.
Quill version: 1.3.7
Firefox version: 82.0.3 (64-bit)

@nehalsoni23
Copy link

Is there any update on this? I face this issue in Chrome. Font size and colour formats are lost when text is copied and pasted.

@benbro
Copy link
Contributor

benbro commented Feb 3, 2024

Please test with v2.0.0-rc.0
https://v2.quilljs.com/standalone/full

@FriendlyUser
Copy link

I still have the same issue even with the new version

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

No branches or pull requests

5 participants