Closed kmarchandfindest closed 3 months ago
It seems you need to init editor with editable: true
to use columnResizing
workaround:
init editor with editable: true
(or not pass editable option), and editor.setEditable(false)
later
Indeed it works. Thanks for the help.
Affected Packages
@tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-header @tiptap/extension-table-cell
Version(s)
2.9.1
Bug Description
I am currently utilizing the editor equipped with the
Table extension
. The table and its commands are functioning properly, except for the resizable columns feature in theTable.configure
. I have attempted various methods and custom implementations to enable column resizing, but none have yielded the desired results. The columns maintain a fixed size, preventing users from adjusting them by dragging the column borders. Additionally, I do not observe the resize cursor or handle when hovering over the columns.Browser Used
Chrome
Code Example URL
https://tiptap.dev/docs/editor/extensions/nodes/table
Expected Behavior
Like the TipTap docs.
Additional Context (Optional)
My setup:
Image of my editor with a table and HTML element (my cursor is hover the column) :
Dependency Updates