Skip to content

Commit 239a2e3

Browse files
committed
fix: don’t resize tables if editable is set to false, fix #1549
1 parent f6f8cf9 commit 239a2e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/extension-table/src/table.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ export const Table = Node.create<TableOptions>({
224224
},
225225

226226
addProseMirrorPlugins() {
227+
const isResizable = this.options.resizable && this.editor.isEditable
228+
227229
return [
228-
...(this.options.resizable ? [columnResizing({
230+
...(isResizable ? [columnResizing({
229231
handleWidth: this.options.handleWidth,
230232
cellMinWidth: this.options.cellMinWidth,
231233
View: this.options.View,

0 commit comments

Comments
 (0)