SurfSense/surfsense_web/components/editor/plugins/table-base-kit.tsx

20 lines
566 B
TypeScript

import {
BaseTableCellHeaderPlugin,
BaseTableCellPlugin,
BaseTablePlugin,
BaseTableRowPlugin,
} from '@platejs/table';
import {
TableCellElementStatic,
TableCellHeaderElementStatic,
TableElementStatic,
TableRowElementStatic,
} from '@/components/ui/table-node-static';
export const BaseTableKit = [
BaseTablePlugin.withComponent(TableElementStatic),
BaseTableRowPlugin.withComponent(TableRowElementStatic),
BaseTableCellPlugin.withComponent(TableCellElementStatic),
BaseTableCellHeaderPlugin.withComponent(TableCellHeaderElementStatic),
];