ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Triple click into paragraph selects paragraph and next element

Open lasfin opened this issue 6 years ago • 5 comments

Is this a bug report or feature request? (choose one)

🐞 Bug report

💻 Version of CKEditor

Latest mater

📋 Steps to reproduce

  1. Open https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html
  2. 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)

lasfin avatar Jun 27 '19 11:06 lasfin

I can confirm it. It occurs only in Chrome.

Mgsy avatar Jul 01 '19 13:07 Mgsy

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

Reinmar avatar Jul 08 '19 12:07 Reinmar

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.

cedric-legallo avatar Jun 29 '20 06:06 cedric-legallo

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.

CKEditorBot avatar Oct 05 '23 05:10 CKEditorBot

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.

CKEditorBot avatar Oct 11 '24 23:10 CKEditorBot

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).

CKEditorBot avatar Nov 11 '24 23:11 CKEditorBot