ckeditor / ckeditor4

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

Space is removed when used `Formatted` paragraph format #674

Open f1ames opened 7 years ago

f1ames commented 7 years ago

Are you reporting a feature or a bug?

Bug

Check if the issue is already reported

None.

Provide detailed reproduction steps (if any)

  1. Go to http://sdk.ckeditor.com/samples/fullpreset.html.
  2. Remove whole editor content (e.g Ctrl + A then Delete).
  3. Add Hello world and then select world like Hello [world].
  4. Open Format Paragraph drop-down and apply Formatted style.

Expected result

Formatted style is applied to the whole paragraph (as it is a block style) without changing its contents, resulting with <pre>hello world</pre>.

Actual result

When Formatted style is applied the space between word is removed, resulting with <pre>helloworld</pre>.

Other details

f1ames commented 7 years ago

Happens also in 4.6.0 and 4.5.0 so it is not any recent regression.