Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { MediaEmbedPlugin } from "@platejs/media/react"import { Plate, PlateContent, usePlateEditor } from "platejs/react"import { MediaEmbedElement } from "@/components/ui/media-embed-node"export default function MediaEmbedDemo() { const editor = usePlateEditor({ plugins: [MediaEmbedPlugin.withComponent(MediaEmbedElement)], value: [ { type: "p", children: [{ text: "Watch the clip below." }], }, { type: MediaEmbedPlugin.key, url: "about:blank", children: [{ text: "" }], }, ], }) return ( <div className="w-full max-w-lg"> <Plate editor={editor}> <PlateContent className="min-h-24 outline-none" readOnly /> </Plate> </div> )}