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