quill icon indicating copy to clipboard operation
quill copied to clipboard

Rich text format being lost when pasting from clipboard on Firefox

Open StefanNedelchev opened this issue 6 years ago • 5 comments

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 avatar Nov 04 '19 12:11 StefanNedelchev

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.

StefanNedelchev avatar Nov 05 '19 08:11 StefanNedelchev

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

sep8 avatar Nov 23 '20 07:11 sep8

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.

nehalsoni23 avatar Oct 31 '23 09:10 nehalsoni23

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

benbro avatar Feb 03 '24 11:02 benbro

I still have the same issue even with the new version

FriendlyUser avatar Jun 25 '24 23:06 FriendlyUser