Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23818

Unwanted non breaking space ( ) characters automatically inserted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.10.5
    • CKEditor, WYSIWYG Editor
    • None
    • Unknown

    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.

      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
      • 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.

       

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

      Attachments

        1. snbps-example.png
          329 kB
          Mohamed Boussaa
        2. before-text-update.png
          590 kB
          Mohamed Boussaa
        3. after-text-update.png
          597 kB
          Mohamed Boussaa

        Activity

          People

            Unassigned Unassigned
            mouhb Mohamed Boussaa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: