diff --git a/packages/tiptap-extensions/src/nodes/Table.js b/packages/tiptap-extensions/src/nodes/Table.js index 8ddd3cbcd..a209c61a9 100644 --- a/packages/tiptap-extensions/src/nodes/Table.js +++ b/packages/tiptap-extensions/src/nodes/Table.js @@ -23,6 +23,12 @@ import TableNodes from './TableNodes' export default class Table extends Node { + get defaultOptions() { + return { + resizable: true, + } + } + get name() { return 'table' } @@ -74,7 +80,7 @@ export default class Table extends Node { get plugins() { return [ - columnResizing(), + ...(this.options.resizable ? [columnResizing()] : []), tableEditing(), ] }