返回 presentation-ai
list-kit.tsx
根目录 / src / components / plate / plugins / list-kit.tsx
1 "use client";
2
3 import { ListPlugin } from "@platejs/list/react";
4 import { KEYS } from "platejs";
5
6 import { IndentKit } from "@/components/plate/plugins/indent-kit";
7 import { BlockList } from "@/components/plate/ui/block-list";
8
9 export const ListKit = [
10 ...IndentKit,
11 ListPlugin.configure({
12 inject: {
13 targetPlugins: [
14 ...KEYS.heading,
15 KEYS.p,
16 KEYS.blockquote,
17 KEYS.codeBlock,
18 KEYS.toggle,
19 ],
20 },
21 render: {
22 belowNodes: BlockList,
23 },
24 }),
25 ];
26
26 lines Plain Text