mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-11 13:10:54 +00:00
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
"use client";
|
|
|
|
import { ListPlugin } from "@platejs/list/react";
|
|
import { KEYS } from "platejs";
|
|
|
|
import { IndentKit } from "@/components/editor/plugins/indent-kit";
|
|
import { BlockList } from "@/components/ui/block-list";
|
|
|
|
export const ListKit = [
|
|
...IndentKit,
|
|
ListPlugin.configure({
|
|
inject: {
|
|
targetPlugins: [...KEYS.heading, KEYS.p, KEYS.blockquote, KEYS.codeBlock, KEYS.toggle],
|
|
},
|
|
render: {
|
|
belowNodes: BlockList,
|
|
},
|
|
}),
|
|
];
|