[upstream] CKEditor add unwanted &nbsp before <br> tag

Created on 28 July 2023, over 1 year ago

Problem/Motivation

CKEditor add many &nbsp before <br> tag on content change.

Steps to reproduce

Use ckeditor 5, use <br> tag.

Here's code example how it looks:
Given this code in "Full HTML" mode

<h2 class="display-2 fw-bolder lh-sm text-end">
            Get
            <br>
            new
            <br>
            friends
            <br>
            ever day.
        </h2>

becomes

<h2 class="display-2 fw-bolder lh-sm text-end">
            Get&nbsp;&nbsp;
            <br>
            new&nbsp;
            <br>
            friends&nbsp;&nbsp;&nbsp;
            <br>
            ever day.
        </h2>

Sometimes there are even more   additions, up to seven (!) per line of code. Every time I reopen the source code, I have to delete the unwanted and unnecessary markup, just to have it in place again once I reopen.

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component
CKEditor 5 

Last updated 3 days ago

Created by

🇺🇦Ukraine Belialius Cherkasy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024