Triple click into paragraph selects paragraph and next element
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
Latest mater
📋 Steps to reproduce
- Open https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html
- Triple click on paragraph before image or table
✅ Expected result
Only paragraph is selected
❎ Actual result
Paragraph and image are both selected. (Or paragraph and table if clicked before table)
I can confirm it. It occurs only in Chrome.
It's a really tricky case to handle. The browser puts the end of the selection in the 2nd line to show that the line break was selected. This makes the end of the selection end up inside the image. Which creates an incorrect state of the model so we want to fix it. And we can either shrink or extend the selection. Since we don't have (at that moment) an information about the origin of the selection change, we always do one thing – we extend the selection.
This can be handled in a better way but it will require siginifican amount of work. Related issue: https://github.com/ckeditor/ckeditor5-widget/issues/83
Similar to this issue, but maybe it needs another one : When we insert a <br/> in a paragraph (with shift+enter) the triple clic selection stops at the <br/> tag and does not select the whole paragraph.
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).