Add BaseTocKit to the editor's plugin array. The kit keeps its node renderers and feature plugins together.
import { createSlateEditor } from "platejs";
import { BaseTocKit } from "@/components/editor/plugins/toc-base-kit";
const editor = createSlateEditor({
plugins: [...BaseTocKit],
});
