Multiple tables wrapped inside a div[align] crashes the editor when TableColumnResize is loaded
📝 Provide detailed reproduction steps (if any)
- initialize a classic editor with the plugins listed at the bottom of this issue
- 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.
Thanks for reporting this! We'll take a look and investigate the issue.
Hello! Fix has been merged https://github.com/ckeditor/ckeditor5/commit/8cb9678424a8fb0b8001f6966015353e234d40d3. It'll be available in incoming nightly version and stable release. Thanks!