mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +08:00
parent
b61bec8bb9
commit
39f942aca8
@ -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(),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user