fix: don’t resize tables if editable is set to false, fix #1549
This commit is contained in:
@@ -224,8 +224,10 @@ export const Table = Node.create<TableOptions>({
|
||||
},
|
||||
|
||||
addProseMirrorPlugins() {
|
||||
const isResizable = this.options.resizable && this.editor.isEditable
|
||||
|
||||
return [
|
||||
...(this.options.resizable ? [columnResizing({
|
||||
...(isResizable ? [columnResizing({
|
||||
handleWidth: this.options.handleWidth,
|
||||
cellMinWidth: this.options.cellMinWidth,
|
||||
View: this.options.View,
|
||||
|
||||
Reference in New Issue
Block a user