返回 presentation-ai
presentation-table-kit.tsx
根目录 / src / components / notebook / presentation / editor / plugins / presentation-table-kit.tsx
1 "use client";
2
3 import {
4 TableCellHeaderPlugin,
5 TableCellPlugin,
6 TablePlugin,
7 TableRowPlugin,
8 } from "@platejs/table/react";
9
10 import {
11 PresentationTableCellElement,
12 PresentationTableCellHeaderElement,
13 PresentationTableElement,
14 PresentationTableRowElement,
15 } from "../custom-elements/presentation-table-node";
16
17 export const PresentationTableKit = [
18 TablePlugin.withComponent(PresentationTableElement),
19 TableRowPlugin.withComponent(PresentationTableRowElement),
20 TableCellPlugin.withComponent(PresentationTableCellElement),
21 TableCellHeaderPlugin.withComponent(PresentationTableCellHeaderElement),
22 ];
23
23 lines Plain Text