Compose MediaKit into a Plate editor's plugin array. It registers image, audio, video, file, embed, placeholder, and caption plugins with their matching renderers.
import { createPlateEditor } from "platejs/react";
import { MediaKit } from "@/components/editor/plugins/media-kit";
const editor = createPlateEditor({ plugins: [...MediaKit] });
The public kit sets ImagePlugin.options.disableUploadInsert and PlaceholderPlugin.options.disableEmptyPlaceholder to true. It can display existing media URLs without an UploadThing endpoint. Enable application uploads through your own implementation or the separate Media UploadThing Kit; persistence, authentication, and storage belong to the application.










