-
-
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
A period does not stick to the preceding word during word-wrap #8852
Comments
Is also reproducible in Safari. |
Hi, thanks for the report. I can confirm this behaviour. |
This bug is related to the inline filler logic and the filler sequence appearing in the text node |
It could be this method is too permissive ckeditor5/packages/ckeditor5-engine/src/view/renderer.js Lines 408 to 445 in 4289176
|
It's to avoid breaking composition while the selection is inside the text node: https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/renderer.js#L343-L345 |
So this is a "have your cake and eat it" kind of situation? Either the composition works properly or the trailing punctuation behaves as it should? Do you think there's a chance that moving to |
Maybe we could consider switching from "zero-width space" to "zero-width no-break space". |
I briefly checked it and replacing
|
Seems that |
It's weird that a word joiner is not displayed in the dev tools. Could you file them a bug report? Their response may actually shed some light on this. I laughed when I read that |
I noticed that some tests in the
So there could be many places where this could fail. Taking this and the BOM case I decided to go with WJ option and to report DevTools bug. |
I reported the issue for DevTools: https://bugs.chromium.org/p/chromium/issues/detail?id=1175133 |
Fix (engine): Words should not break on link boundaries. Closes #8852.
📝 Provide detailed reproduction steps (if any)
.
after the link✔️ Expected result
The link and the period are word-wrapped
❌ Actual result
The period is detached from the word; if I press Enter after that, everything re-wraps normally
Screen.Recording.2021-01-17.at.21.38.02.mov
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: