You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Table doesn't save columns width after refresh
To Reproduce
I resize the columns width for editor table.
After that I save the content to the api ( I save all the content that editor return in editor.topLevelBlocks from onEditorContentChange ), but after refresh table has the default width for column
It happens because the styles object is empty and there is no information for updated column width
How can I pass column width from editor table to styles object?
Misc
Node version: 20.9.0
Package manager: npm
Browser: Chrome
I'm a sponsor and would appreciate if you could look into this sooner than later 💖
The text was updated successfully, but these errors were encountered:
When resizing a table, prosemirror changes the colgroup's col widths without transmitting this data to the table nodes. This is related to [this issue](TypeCellOS#655). The fix consists of listening to the mouse up event and checking for a change in any of the columns from prosemirror. If there is a change that should affect a cell, we update the cells of the table. This will re-render the table. We persist the width information in a property for the node. Thus we had to change the typing of cell contents.
Describe the bug
Table doesn't save columns width after refresh
To Reproduce
I resize the columns width for editor table.
After that I save the content to the api ( I save all the content that editor return in editor.topLevelBlocks from onEditorContentChange ), but after refresh table has the default width for column
It happens because the styles object is empty and there is no information for updated column width
How can I pass column width from editor table to styles object?
Misc
The text was updated successfully, but these errors were encountered: