-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[FF] Adding inline style prevents from adding white space at the end of the paragraph #692
Comments
There's also a third connected scenario:
|
The 2. and 3. scenarios are connected with the FF |
It turned out, that there're two bugs, but only one was visible at the first glance. Firefox inserts space and |
Update: Manually fixing DOM and removing bogus BR fixes 1. and 3. scenarios. The 2. is a little bit different and it's more about a bug connected to removing normal space after inline filler. |
Removing it from where? The DOM? I think that we talked about removing it from mutations? |
Hmm, I've fixed the DOM mutations, so through them I was changing the original DOM. I don't know if it's easily achievable by fixing only view mutations. I'd have to somehow hack the |
What do you mean by "fixed the DOM mutations"? ;) Mutation is an information that we got. So, you want to say that you're reverting some mutations by changing the DOM back to its original state? |
We had a short call and we agreed to first check the problem with filtering out the text node and work on the mutations later on. These are separate issues and by fixing the filtering problem we will fix most of the issue. The br-in-mutations problem will still be something that we should work on, though. |
Fix to the space is ready, but it doesn't solve all issues, I'll create a follow-up to the better |
Fix: [Firefox] Added fix for typing space on the edge of inline elements. Closes ckeditor/ckeditor5#692.
🐞 Is this a bug report or feature request? (choose one)
💻 Version of CKEditor
1.0.0-Alpha2
📋 Steps to reproduce
Scenario 1
Paragraph
.Bold
.Scenario 2
Paragraph
.Bold
.Scenario 3
Paragraph
.Bold
and write something.Bold
.✅ Expected result
Space was inserted.
❎ Actual result
Scenario 1
Scenario 2
Scenario 3
📃 Other details that might be useful
GIF
Original issue - mozilla/notes#416
Browser: Firefox 57
OS: Windows 10, MacOS X
Edited: Added 3. Scenario.
The text was updated successfully, but these errors were encountered: