fix: don’t resize tables if editable is set to false, fix #1549

This commit is contained in:
Philipp Kühn 2021-08-09 17:41:17 +02:00
parent f6f8cf9f93
commit 239a2e36a4

View File

@ -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,