mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 15:49:23 +08:00
fix: don’t resize tables if editable is set to false, fix #1549
This commit is contained in:
parent
f6f8cf9f93
commit
239a2e36a4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user