-
-
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
The blinking caret after embeding a media inside a table #1554
Comments
If this can be reproduced outside tables and if this is a regression, we need to add it to it22. Otherwise, move it to it23. |
Only in tables. Dunno if regression though. |
This happens only in tables so it cannot be a regression since before this release we did not support nested widgets at all. |
As I commented in ckeditor/ckeditor5-table#176 (comment) I think the bug is somewhere in the engine/widget logic. It's weird that we've got a native selection + widget selection. If they are looking like this:
Then we should see a fake selection being rendered. But that's not true on |
@Reinmar are you sure that the fake selection is not in the DOM in this fix? |
I was testing the situation before this fix. I update my comment to make it clearer. |
But the View table post-fixer was setting normal selection on the element which was causing the bug. The fake selection was set and after that the view table cell post fixer was setting view selection based on model selection so overriding the fake selection previously set by the widget. In the fix I restricted the view table cell post fixer from changing the selection if it is already OK. It should only fix a selection when it renamed I'm pretty confident that the issue was view table cell post fixer messing with view selection (not respecting |
I talked with @jodator yesterday and we explained each other what's happening here. So, @jodator's observation was that this post-fixer selects a widget, but it was losing the information that this selection should be made with a fake selection. My observation was that while It turned out that:
Both things are quite serious, IMO. The first issue indicates IMO that the responsibility how the selection is rendered should be on the view element, not the converter. The second one shows that it would be safe if we'd improve cc @pjasiun |
I've lost track how this should be fixed. After inspecting the PR it fixes the issue but there's no decision on what to do with the reported issues by @Reinmar. |
IIRC the PR was good (for now). And there's a followup to make |
Fix: Table cell view post-fixer should not fix valid view selection. Closes ckeditor/ckeditor5#1554.
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
Master
📋 Steps to reproduce
/features/table.html
,Shift+Enter
,https://www.youtube.com/watch?v=H08tGjXNHO4
✅ Expected result
I am not sure because other browsers produce different results:
❎ Actual result
The caret is blinking and the media is selected.
📃 Other details that might be useful
MacOS / Chrome 72.0.3626.109
The text was updated successfully, but these errors were encountered: