ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Multiple tables wrapped inside a div[align] crashes the editor when TableColumnResize is loaded

Open mml90 opened this issue 4 months ago • 2 comments

📝 Provide detailed reproduction steps (if any)

  1. initialize a classic editor with the plugins listed at the bottom of this issue
  2. set the initial data to <div align="left"><table><colgroup><col style="width:100px;"></colgroup><tbody><tr><td>a</td></tr></tbody></table><table><colgroup><col style="width:100px;"></colgroup><tbody><tr><td>a</td></tr></tbody></table></div>

✔️ Expected result

Two separate one-row tables, each upcast with tableAlignment="blockLeft", the same alignment of the wrapper div with the legacy attribute align.

❌ Actual result

The editor never initializes. ClassicEditor.create() rejects with: CKEditorError: conversion-slot-filter-incomplete

❓ Possible solution

upcastTableAlignedDiv (packages/ckeditor5-table/src/tableproperties/tablepropertiesediting.ts) should not run unless the div wrapper has exactly one table and/or whitespaces inside.

📃 Other details

  • Browser: firefox and chrome latest
  • OS: windows
  • First affected CKEditor version: Since v48.0.0 (the "no-wrap table alignment" feature, #19317 / #19348)
  • Installed CKEditor plugins: Essentials, Paragraph, Table, TableProperties, TableColumnResize

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

mml90 avatar Jul 16 '26 20:07 mml90

Thanks for reporting this! We'll take a look and investigate the issue.

jacek-cke avatar Jul 17 '26 08:07 jacek-cke

Hello! Fix has been merged https://github.com/ckeditor/ckeditor5/commit/8cb9678424a8fb0b8001f6966015353e234d40d3. It'll be available in incoming nightly version and stable release. Thanks!

Mati365 avatar Jul 20 '26 05:07 Mati365