返回 presentation-ai
presentation-basic-blocks-base-kit.tsx
根目录 / src / components / notebook / presentation / editor / plugins / presentation-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 { HrElementStatic } from "@/components/plate/ui/hr-node-static";
15 import {
16 H1ElementStatic,
17 H2ElementStatic,
18 H3ElementStatic,
19 H4ElementStatic,
20 H5ElementStatic,
21 H6ElementStatic,
22 } from "../custom-elements/static/presentation-heading-element-static";
23 import { PresentationParagraphElementStatic } from "../custom-elements/static/presentation-paragraph-element-static";
24
25 export const PresentationBasicBlocksBaseKit = [
26 BaseParagraphPlugin.withComponent(PresentationParagraphElementStatic),
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