Problem/Motivation

Before the upgrade

Merging table cells is not possible in the editor. The button is present and not disabled, but the cells are not merged after clicking it. allowed_html contains <td> without <colspan> attribute.

After the upgrade

Merging table cells is possible in the editor. The button is present and the cells are merged in the editor, but the cells are not merged in the processed output. allowed_html contains <td> without <colspan> attribute.

Steps to reproduce

I attached the before and after configs. I also attached the custom filter_responsive_table filter plugin to be sure, but I don't think that's the problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DieterHolvoet created an issue. See original summary.

Wim Leers’s picture

GREAT FIND! 🤩

Could you try again with this patch applied? 🤓 (Note that you will have to apply the patch, clear caches, go to your text format and hit "Save" again.)

This is something we missed a long time ago, in #3209613: Add "Table" plugin, long before the CKEditor 5 was anywhere near stable … 😅

DieterHolvoet’s picture

Status: Needs review » Reviewed & tested by the community

Works! Thanks :)

Wim Leers’s picture

Title: Merging cells in tables is possible after upgrade, even though the colspan attribute is not whitelisted. » Merging cells in tables is possible in UI, but lost upon saving
Priority: Normal » Major
Issue tags: +data loss

Thanks! 🥳

Wim Leers’s picture

Issue tags: -drupaldevdays +ddd2022
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 28bdfa2 and pushed to 10.0.x. Thanks!
Committed 4d9db67 and pushed to 9.4.x. Thanks!
Committed 81cb15e and pushed to 9.3.x. Thanks! >

Discussed whether a test is necessary with @Wim Leers and @lauriii - we decided that is was not because @Wim Leers felt it might not be possible and regression is unlikely.

  • alexpott committed 28bdfa2 on 10.0.x
    Issue #3273332 by Wim Leers, DieterHolvoet: Merging cells in tables is...

  • alexpott committed 4d9db67 on 9.4.x
    Issue #3273332 by Wim Leers, DieterHolvoet: Merging cells in tables is...

  • alexpott committed 81cb15e on 9.3.x
    Issue #3273332 by Wim Leers, DieterHolvoet: Merging cells in tables is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.