ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.55k stars 3.7k forks source link

Inserting non-breaking spaces isn't honored but replaced #10745

Open putzwasser opened 3 years ago

putzwasser commented 3 years ago

📝 Provide detailed reproduction steps (if any)

  1. Open ckeditor on a linux machine
  2. Press [Ctrl]+[Shift]+u to switch into unicode input mode
  3. Type 00A0 to insert a nbsp

✔️ Expected result

CKeditor should insert a non-breaking space

❌ Actual result

CKeditor inserts a normal space.

❓ Possible solution

Respect the actual user input. While I understand that ckeditor tries to deliver a good experience when copy pasting (#1669), I find it quite bold to replace deliberately chosen user input.

(This is related to #1669 but this describes another bug. While #1669 deals with copy-pasting a nbsp this is about inserting it directly via unicode input mode)


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

Reinmar commented 3 years ago

This unfortunately is not possible yet due to how input detection works. But there's a high chance it will be resolved soon once we migrate to beforeInput.

putzwasser commented 3 years ago

This unfortunately is not possible yet due to how input detection works. But there's a high chance it will be resolved soon once we migrate to beforeInput.

Thanks for the reply. Is there an ETA for the migration?

Also, do you know a workaround?

CKEditorBot commented 1 year ago

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.

putzwasser commented 1 year ago

This is still relevant

CKEditorBot commented 1 month ago

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.

putzwasser commented 1 month ago

This is still relevant