| 1 | import { BaseListPlugin } from "@platejs/list"; |
| 2 | import { KEYS } from "platejs"; |
| 3 | |
| 4 | import { BaseIndentKit } from "@/components/plate/plugins/indent-base-kit"; |
| 5 | import { BlockListStatic } from "@/components/plate/ui/block-list-static"; |
| 6 | |
| 7 | export const BaseListKit = [ |
| 8 | ...BaseIndentKit, |
| 9 | BaseListPlugin.configure({ |
| 10 | inject: { |
| 11 | targetPlugins: [ |
| 12 | ...KEYS.heading, |
| 13 | KEYS.p, |
| 14 | KEYS.blockquote, |
| 15 | KEYS.codeBlock, |
| 16 | KEYS.toggle, |
| 17 | ], |
| 18 | }, |
| 19 | render: { |
| 20 | belowNodes: BlockListStatic, |
| 21 | }, |
| 22 | }), |
| 23 | ]; |
| 24 |