quill
quill copied to clipboard
Firefox loses 'spaces' at the end of the line
Steps for Reproduction
- Visit https://codepen.io/ile/pen/OJoXpOg
- Try it with Firefox
- 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
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.
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
This line of CSS seemed to fix the issue for me: https://github.com/quilljs/quill/issues/1760#issuecomment-380909776