ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

[Firefox] Caret is missing when inline image is at the end of line

Open FilipTokarski opened this issue 4 years ago • 8 comments

📝 Provide detailed reproduction steps (if any)

  1. Add inline image to empty paragraph or at the end of the line
  2. Click right after it
  3. Try to type something

✔️ Expected result

The caret is visible, you can type.

❌ Actual result

The caret is not visible, you cannot type. You need to select the image, click arrow right and then type something.

Screencast

https://user-images.githubusercontent.com/34380544/134302736-7e4496c8-c875-4599-ac91-3c555dc3bf02.mp4

📃 Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

FilipTokarski avatar Sep 22 '21 07:09 FilipTokarski

This is actually quite an awkward issue because we’re supporting custom smileys based on images. These can naturally occur at the end of a line and block the placement of the caret after the smiley. We do suppress the image toolbar for those smileys so at the end all that happens is that the image is being added to the text selection and nothing else.

The workaround with the arrow key is hardly a substitute to resolve this problem: Not only are common users (rightfully) not aware of this and this isn’t even an option on entirely touch based devices. For these users it is currently impossible to set the caret after the image without deleting the image!

dtdesign avatar Jul 10 '23 11:07 dtdesign

@niegowski by any chance the recent work in the empty inline elements could somehow solve also this problem?

Witoso avatar Jul 11 '23 07:07 Witoso

@niegowski by any chance the recent work in the empty inline elements could somehow solve also this problem?

No, it's not related. But this could be related: https://github.com/ckeditor/ckeditor5/issues/12267

niegowski avatar Jul 11 '23 11:07 niegowski

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 Jul 11 '24 03:07 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 Aug 14 '24 02:08 CKEditorBot

@Witoso It looks like your bot is malfunctioning, it shouldn’t have closed this issue?

dtdesign avatar Aug 15 '24 08:08 dtdesign

We'll check.

Witoso avatar Aug 19 '24 07:08 Witoso

Clarification: The bot checks new reactions to the ticket. We'll think about considering also reactions to the bot's comments – this would make sense.

Reinmar avatar Aug 19 '24 08:08 Reinmar

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 Aug 19 '25 23:08 CKEditorBot

Tested with the latest demo running v46.0.1, this is still a huge problem for Firefox users.

dtdesign avatar Aug 20 '25 08:08 dtdesign