ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.78k stars 2.46k forks source link

[Chrome]   is inserted instead of space #5488

Closed mblagojevic10 closed 1 year ago

mblagojevic10 commented 1 year ago

Bug

Provide detailed reproduction steps (if any) Type a space between two words somewhere in the middle of a sentence: <h1>Hello| world!</h1> -> <h1>Hello | world!</h1> - the caret becomes between two spaces. Press backspace to delete one space on the left. Type a space and new word "foobar". Expected result:

<h1>Hello foobar world!</h1>

Actual result

<h1>Hello foobar&nbsp;world!</h1>

Other details Browser: Google Chrome 114.0.5735.106 OS: linux, win, macos Screen Recording 2023-06-06 at 11.59.05.zip The video is attached with an example.

KarolDawidziuk commented 1 year ago

Hi @mblagojevic10

I cannot confirm this issue. Tested on the provided version of Chrome.

The behavior of the editor shown in the provided video is the expected behavior. In case when there is more than one space between words, the editor will apply a non-breaking-spacecharacter to prevent text collapsing.

You can test it by applying multiple spaces between word, switch to source mode, remove &nbsp; then back to the WYSIWYG mode and you'll see that spaces will be collapsed to a single one which is not a expected behaviour.

Since this report is not valid, I'm closing it.

rmueller83 commented 8 months ago

To reproduce, use a Chromium-based Browser (Chrome, Edge) and go to https://ckeditor.com/ckeditor-4/demo/ Select a part of the existing text (e.g. "tempted by the idea") and copy it to your clipboard. Go to the end of a different line (I did it on the last one), hit space, and paste the content from your clipboard. Now copy the whole modified line to you clipboard and paste it into an editor which shows hidden characters (e.g. IntelliJ IDEA): ckeditor-nbsp

rmueller83 commented 8 months ago

@KarolDawidziuk could you please re-open this?