Icon Loss After Migration to CKEditor5 Plugin

Created on 1 May 2025, 3 months ago

Problem/Motivation

After updating the CKEditor plugin, the existing button elements with icon classes (such as fa, fa-icon-left, etc.) in the content are no longer preserved correctly during editing. Specifically, the icons inside

Steps to reproduce

Open an existing page where buttons with icons (generated using the old CKEditor 4 plugin) are already present. For example, the button might look like this:

<a class="btn btn-primary" href="#" target="_blank">
  <i class="fa fa-icon-left fa-swimmer" style="word-spacing: -1em;">&nbsp;</i>
  <span class="text">Find a Lesson!</span>
</a>

Alternatively, manually insert a button with icons directly by pasting the old HTML structure into the CKEditor.
Edit the page in CKEditor and save the changes.
Observe that the icon inside the

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine mamoruua

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

Comments & Activities

Production build 0.71.5 2024