Class 'ck-widget' is duplicated after saving content more than once

Created on 1 August 2023, 11 months ago
Updated 11 January 2024, 6 months ago

Problem/Motivation

'ck-widget' class is getting duplicated saving the content (but maximum twice).
Didn't find a bug on CKEditor 5 Github - https://github.com/ckeditor/ckeditor5/issues

Steps to reproduce

create new page contend - add a grid, edit, save

view content - all classes are added just once

edit content:

view source: ck-widget class appears twice

save

view content:
ck-widget class appears twice (see screenshot)

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia jannakha Brisbane!

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

Comments & Activities

  • Issue created by @jannakha
  • 🇺🇸United States joshuami Portland, OR

    I have been able to duplicate this issue on a site that used a combination of ckeditor_bs_grid and ckeditor_templates. Any template added to a grid where the template included divs—such as adding a Bootstrap card component—resulted in data loss on edit. For some reason, the duplicate ck-widget classes would trigger the removal of the div with col class immediately following the row.

    It's an odd enough behavior that I can't quite track down the source. I'm adding a comment in case anyone else is seeing similar.

Production build 0.69.0 2024