Can't add space at the end of a line (only Firefox)
See original GitHub issueHi! I’ve just found a weird bug!
Whenever I type a white space, it gets stripped out automatically.
So I I want to write Hey man
, it will render as Heyman
.
However, when you try to add a space, but not at the end of the line, like adding “my” between “Hey” and “man”. Then it works and renders Hey my man
.
It works fine on all other browsers, except Firefox for some reason.
Any help would be appreciated 😃
Platforms: Firefox 79.0 (64-bit) - Mac Version: 1.3.7
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Re: Space bar not working in Firefox - April 2022 - Page 5
Whenever I type text and input space with space bar the space disappears immediately, so if I continue to type the words run...
Read more >line spacing wrong in part of page | Firefox Support Forum
In the right pane of Google News, line spacing is too close so that text is vertically overlapping. The rest of the page...
Read more >Firefox line spacing, and window title vertical size.
Please provide an option to revert to the smaller line spacing and the original smaller top window title vertical size.
Read more >How whitespace is handled by HTML, CSS, and in the DOM
Explanation · First, all spaces and tabs immediately before and after a line break are ignored so, if we take our example markup...
Read more >How do i remove the upper space between opened tabs and ...
I have managed to fix it. So whoever encounters this problem this is how you fix it: go to the right upper corner...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What @tjw0051 proposed, didn’t work in my case. But there had to be something in the
quill.core.css
which fixed it for him, and I think it is thewhite-space: pre-wrap
rule.In my case, I had a custom styling which applied
white-space: normal
to the.ql-editor
selector. After changing it towhite-space: pre-wrap
it works again as intended on all major browsers.Also getting this on Firefox Dev 80.0b7 (Mac) w/ quill-emoji module Trimming out spaces while inputing text
Edit: I’ve managed to fix it. It looks like this happens if you forget to include
quill.core.css
in the project.