ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Backspacing a selected word does not remove the adjacent space on macOS

Open dtdesign opened this issue 2 years ago • 2 comments

Deleting a selected word on macOS also removes an adjacent space character. This behavior is part of macOS and not specific to any browser and works consistently across browsers (Chrome, Safari and Firefox were tested). It works for native apps, <input>, <textarea> and vanilla [contenteditable="true"] elements.

📝 Provide detailed reproduction steps (if any)

  1. Type a few words into the editor: This is a simple test.
  2. Double-click on simple to select that word.
  3. Hit backspace to delete the word.

✔️ Expected result

The line should read: This is a test

❌ Actual result

The line now contains two successive spaces: This is a test.

📃 Other details

  • Browser: Not relevant, this is OS specific.
  • OS: macOS 13.4.1
  • First affected CKEditor version: Unknown
  • Installed CKEditor plugins: Not relevant

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

dtdesign avatar Jul 11 '23 12:07 dtdesign

Quick note here: this result is only expected by double-clicking on the word. If you manually use the cursor or arrow keys to select the word and delete it, the space should not be removed.

MatzeKitt avatar Jul 11 '23 12:07 MatzeKitt

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 14 '24 02:08 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 Aug 14 '25 23:08 CKEditorBot

This unexpected behavior is still present.

dtdesign avatar Aug 15 '25 07:08 dtdesign