This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9c71aecf-c3e5-45d8-9a1e-4fa10b25c9bc XWIKI-23818 Open

Unwanted non breaking space ( ) characters automatically inserted

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b6c8a47f-917f-4b45-a066-517b5638b7e0 Mohamed Boussaa created this issue on 12/Dec/25 12:40
 
Summary: Unwanted non breaking space ( ) characters automatically inserted
Issue Type: cid:jira-generated-image-avatar-9c71aecf-c3e5-45d8-9a1e-4fa10b25c9bc Bug
Affects Versions: 16.10.5
Assignee: Unassigned
Attachments: after-text-update.png, before-text-update.png, snbps-example.png
Components: CKEditor, WYSIWYG Editor
Created: 12/Dec/25 12:40
Priority: cid:jira-generated-image-static-major-7ef7e6fe-5422-49bd-a1b7-98b708c62127 Major
Reporter: Mohamed Boussaa
Description:

The WYSIWYG editor is automatically generating non breaking spaces ( ) in some situations which impacts the display of the paragraph containing the nbsp characters. See an example of the impact of one nbsp character on the display of a paragraph, and it's worse when there are several of them.

44458_snbps-example.png

Note that I noticed this issue after an upgrade of XWiki from version 9.8.1 to 16.10.5.
I tested on a fresh XWiki 9.8.1 instance and I did not reproduce.

Steps to reproduce

XWiki version : 16.10.5
Chrome Version 143.0.7499.41 (Official Build) (arm64)

  • Edit a wiki page using WYSIWYG editor
  • Insert some text with a link and save the page (example : "Some dummy text") with a link on "dummy" word. See screenshot
  • 44457_before-text-update.png
  • Edit the page again and remove the 2 last characters of the word before the link, in our case remove letters "me" from word "Some"
  • Save and view the page

Expected result : the text is updated without any " " character added.

Current result : an " " character is added before the link, see screenshot.

44456_after-text-update.png

 

Note that the same behavior can be observed if you use formatting instead of links (bold, italic, ...)

 
 

1 update

 
cid:jira-generated-image-avatar-b6c8a47f-917f-4b45-a066-517b5638b7e0 Changes by Mohamed Boussaa on 12/Dec/25 12:42
 
Description: The WYSIWYG editor is automatically generating non breaking spaces ( & nbsp ; ) in some situations which impacts the display of the paragraph containing the nbsp characters. See an example of the impact of one nbsp character on the display of a paragraph, and it's worse when there are several of them.

!snbps-example.png|width=577,height=123!

Note that I noticed this issue after an upgrade of XWiki from version 9.8.1 to 16.10.5.
I tested on a fresh XWiki 9.8.1 instance and I did not reproduce.

*Steps to reproduce*

XWiki version : 16.10.5
Chrome Version 143.0.7499.41 (Official Build) (arm64)
* Edit a wiki page using WYSIWYG editor
* Insert some text with a link and save the page (example : "Some dummy text") with a link on "dummy" word. See screenshot
* !before-text-update.png|width=386,height=216!
* Edit the page again and remove the 2 last characters of the word before the link, in our case remove letters "me" from word "Some"
* Save and view the page

*Expected result :* the text is updated without any "
& nbsp ; " character added.

*Current result :* an "
& nbsp ; " character is added before the link, see screenshot.

!after-text-update.png|width=550,height=304!

 

Note that the same behavior can be observed if you use formatting instead of links (bold, italic, ...)