adding option to disable resizing of tables

closes #310
This commit is contained in:
Chrissi2812 2019-05-15 09:38:16 +02:00
parent b61bec8bb9
commit 39f942aca8
No known key found for this signature in database
GPG Key ID: B4B82C7E618271DA

View File

@ -23,6 +23,12 @@ import TableNodes from './TableNodes'
export default class Table extends Node { export default class Table extends Node {
get defaultOptions() {
return {
resizable: true,
}
}
get name() { get name() {
return 'table' return 'table'
} }
@ -74,7 +80,7 @@ export default class Table extends Node {
get plugins() { get plugins() {
return [ return [
columnResizing(), ...(this.options.resizable ? [columnResizing()] : []),
tableEditing(), tableEditing(),
] ]
} }