Skip to content

Resizable tables don't retain their column widths when the editor isn't editable #2041

Closed
@ConorHawk

Description

@ConorHawk

What’s the bug you are facing?

I have an editable instance of the editor, which includes the table plugins. I have set the tables to be resizable. I resize my tables and save the content.

When I go to load that content into an editor that it not editable, the table columns lose the custom widths that I set.

How can we reproduce the bug on our side?

Create an instance of the editor which includes resizable tables.
Create a table and resize the columns.
Get the html from that editor editor.getHTML() and insert it as the content for another editor that is not editable.
The tables lose the custom widths that I set.

Can you provide a CodeSandbox?

https://codesandbox.io/s/unruffled-orla-fykjr?file=/src/App.vue

What did you expect to happen?

I expected the readonly version of the editor to still display the custom widths that I set, but for the columns to not be resizable.

Anything to add? (optional)

Thanks for your work on tiptap, its really awesome!

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThe issue or pullrequest is related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions