Issue Bug Closed

#101726CKEditor5: Whitespace plugin does not highlight all non breaking spaces (nbsp)

Georg Tiefenbrunn 08/22/23, 08:36 updated 09/23/26, 17:11

Description

Paste the following code into a RTE in source editing mode and switch back into WYSIWYG mode:

<h3>
    Visible nbsp
</h3>
<p>
    Lorem&nbsp;i<strong>&nbsp;p&nbsp;</strong>&nbsp;sum
</p>
<p>
    &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; indentation
</p>
<h3>
    Invisible nbsp
</h3>
<p>
    &nbsp;
</p>
<p>
    <br>
    &nbsp;&nbsp;
    <br>
    Lorem impsum&nbsp;
    <br>
    &nbsp;&nbsp;
</p>
<p>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; indentation
</p>
<p>
    &nbsp;dolor &nbsp;sit &nbsp; amet&nbsp;
</p>
  • nbsp after a whitespace are not marked
  • nbsp before line ending are not marked
  • multiple nbsp after line breaks are not marked

As an editor, I would expect the RTE to mark all   entities.

The HTML code above was copied from a RTE in source editing mode from https://demo.typo3.org/ (TYPO3 12.4.5) from an “Text & Media” element.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.