[upstream] CKEditor 5 moves <span> inside <a> tag

Created on 13 October 2023, about 1 year ago
Updated 13 February 2024, 9 months ago

Problem/Motivation

Ckeditor moves span around by itself.

Steps to reproduce

Pasting this inside the source code view and switching back to wysiwyg mode.
<span class="ctr-box"><a class="ctr-button" href="https://www.drupal.org" rel="noopener nofollow" target="_blank">FOO</a></span>

Will result in :

<p>
    <a class="ctr-button" href="https://www.drupal.org" target="_blank" rel="noopener nofollow"><span class="ctr-box">FOO</span></a>
</p>

The span tag is moved inside the a tag. Kills the styling and logic of many of my templates.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Postponed

Version

11.0 ๐Ÿ”ฅ

Component
CKEditor 5ย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany marcoka

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024