Skip to content

Column resize in nested child table. #19609

Description

@jichang

📝 Provide detailed reproduction steps (if any)

  1. Goto https://ckeditor.com/docs/ckeditor5/latest/features/tables/tables-resize.html#demo
  2. Create a new table, then in any cell, create a child table.
  3. Drag the resizer in the header cell of child table
Recording.2026-01-13.152411.mp4

✔️ Expected result

The child table column should be resized correctly.

❌ Actual result

The parent table column got resized.

❓ Possible solution

The problem should be caused by this line

const viewLeftCell = viewResizer.findAncestor( 'td' )! || viewResizer.findAncestor( 'th' )!;

When drag resizer in header cell of child table, it will try to find td ancestor, in this scenario, it will find the td cell in parent table instead of the th cell in child table.

📃 Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:tabletype:bugThis issue reports a buggy (incorrect) behavior.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions