quill icon indicating copy to clipboard operation
quill copied to clipboard

Firefox loses 'spaces' at the end of the line

Open ile opened this issue 1 year ago • 3 comments

Steps for Reproduction

  1. Visit https://codepen.io/ile/pen/OJoXpOg
  2. Try it with Firefox
  3. Type letters and spaces. Spaces should disappear.

Expected behavior:

Spaces should'n disappear.

Actual behavior:

Spaces disappear.

Platforms:

Firefox Ubuntu. 110.0.

Version:

Quill.version: 2.0.0-dev.3 Included this at Codepen: https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.0-dev.4/quill.min.js

ile avatar Feb 23 '23 12:02 ile

The problem seems to be how Firefox (or Quill 2.0) handles the spaces in the end of the paragraph. Inspecting the element, they don't seem to go into the element at all.

ile avatar Feb 23 '23 23:02 ile

It works on FireFox: https://codepen.io/kriskratz/pen/xxywgmX

Steps to reproduce:

I copied the official Codepen: https://codepen.io/quill/pen/KzZqZx And I used the official quill CDN: https://cdn.quilljs.com/2.0.0-dev.4/quill.js

kriskratz avatar Apr 11 '23 22:04 kriskratz

This line of CSS seemed to fix the issue for me: https://github.com/quilljs/quill/issues/1760#issuecomment-380909776

TheOtterlord avatar Nov 28 '23 18:11 TheOtterlord