返回 presentation-ai
basic-blocks-base-kit.tsx
根目录 / src / components / plate / plugins / basic-blocks-base-kit.tsx
1 import {
2 BaseBlockquotePlugin,
3 BaseH1Plugin,
4 BaseH2Plugin,
5 BaseH3Plugin,
6 BaseH4Plugin,
7 BaseH5Plugin,
8 BaseH6Plugin,
9 BaseHorizontalRulePlugin,
10 } from "@platejs/basic-nodes";
11 import { BaseParagraphPlugin } from "platejs";
12
13 import { BlockquoteElementStatic } from "@/components/plate/ui/blockquote-node-static";
14 import {
15 H1ElementStatic,
16 H2ElementStatic,
17 H3ElementStatic,
18 H4ElementStatic,
19 H5ElementStatic,
20 H6ElementStatic,
21 } from "@/components/plate/ui/heading-node-static";
22 import { HrElementStatic } from "@/components/plate/ui/hr-node-static";
23 import { ParagraphElementStatic } from "@/components/plate/ui/paragraph-node-static";
24
25 export const BaseBasicBlocksKit = [
26 BaseParagraphPlugin.withComponent(ParagraphElementStatic),
27 BaseH1Plugin.withComponent(H1ElementStatic),
28 BaseH2Plugin.withComponent(H2ElementStatic),
29 BaseH3Plugin.withComponent(H3ElementStatic),
30 BaseH4Plugin.withComponent(H4ElementStatic),
31 BaseH5Plugin.withComponent(H5ElementStatic),
32 BaseH6Plugin.withComponent(H6ElementStatic),
33 BaseBlockquotePlugin.withComponent(BlockquoteElementStatic),
34 BaseHorizontalRulePlugin.withComponent(HrElementStatic),
35 ];
36
36 lines Plain Text