Project

General

Profile

Actions

Bug #101726

open

Epic #99669: CKEditor5 Collection

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

Added by Georg Tiefenbrunn 9 months ago. Updated 8 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-08-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF