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() {
|
addProseMirrorPlugins() {
|
||||||
|
const isResizable = this.options.resizable && this.editor.isEditable
|
||||||
|
|
||||||
return [
|
return [
|
||||||
...(this.options.resizable ? [columnResizing({
|
...(isResizable ? [columnResizing({
|
||||||
handleWidth: this.options.handleWidth,
|
handleWidth: this.options.handleWidth,
|
||||||
cellMinWidth: this.options.cellMinWidth,
|
cellMinWidth: this.options.cellMinWidth,
|
||||||
View: this.options.View,
|
View: this.options.View,
|
||||||
|
|||||||
Reference in New Issue
Block a user