-
-
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] Typing space after inline element boundary doesn't work #1083
Comments
I pushed |
It looks like a regression - it was fixed here: ckeditor/ckeditor5-engine#1204 |
@ma2ciek I think this is a little different case. This one takes place in typing. It was "hidden" earlier because we didn't convert As far as the solution goes, it looks okay for now. However, I don't like this part of code // Skip situations when common ancestor has any elements (cause they are too hard).
if ( !hasOnlyTextNodesOrBrs( modelFromDomChildren ) || !hasOnlyTextNodesOrBrs( currentModelChildren ) ) {
return;
} Which caused the bug. The moment we will allow more inline elements that will be rendered, the bug will manifest again. |
Actually, there is a problem with indexes even now if we will have a "real" |
Fix: Bogus `<br />` element inserted by a browser at the end of an element is now correctly handled. Closes ckeditor/ckeditor5#1083.
Expected:
<p><b>a</b> []</p>
Actual:
<p><b>a</b>[]</p>
The text was updated successfully, but these errors were encountered: