mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 12:22:37 +10:00
fix table commands type error
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
import TiptapTableHeader from "@tiptap/extension-table-header";
|
||||
|
||||
export const TableHeader = TiptapTableHeader.configure();
|
||||
@ -1,4 +1,2 @@
|
||||
export * from "./table-extension";
|
||||
export * from "./header";
|
||||
export * from "./row";
|
||||
export * from "./cell";
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
import TiptapTable from "@tiptap/extension-table";
|
||||
|
||||
export const Table = TiptapTable.configure({
|
||||
resizable: true,
|
||||
lastColumnResizable: false,
|
||||
allowTableNodeSelection: true,
|
||||
});
|
||||
@ -3,7 +3,7 @@ import { Editor, findParentNode, isTextSelection } from "@tiptap/core";
|
||||
import { Selection, Transaction } from "@tiptap/pm/state";
|
||||
import { CellSelection, TableMap } from "@tiptap/pm/tables";
|
||||
import { Node, ResolvedPos } from "@tiptap/pm/model";
|
||||
import { Table } from "./table/table-extension";
|
||||
import Table from "@tiptap/extension-table";
|
||||
|
||||
export const isRectSelected = (rect: any) => (selection: CellSelection) => {
|
||||
const map = TableMap.get(selection.$anchorCell.node(-1));
|
||||
|
||||
Reference in New Issue
Block a user