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 { createPlateEditor, Plate, PlateContent } from "platejs/react"import { DndPlugin } from "@platejs/dnd"import { DndProvider } from "react-dnd"import { HTML5Backend } from "react-dnd-html5-backend"import { BlockDraggable } from "@/components/ui/block-draggable"import { TooltipProvider } from "@/components/ui/tooltip"const editor = createPlateEditor({ plugins: [ DndPlugin.configure({ render: { aboveNodes: BlockDraggable, }, }), ], value: [ { type: "p", children: [{ text: "Hover a block to reveal its drag handle." }] }, { type: "p", children: [{ text: "Drag the handle on the left to move this paragraph." }] }, { type: "p", children: [{ text: "Blocks can be reordered anywhere in the document." }] }, ],})export default function BlockDraggableDemo() { return ( <DndProvider backend={HTML5Backend}> <TooltipProvider> <Plate editor={editor}> <PlateContent className="w-full max-w-lg pl-10 outline-none" /> </Plate> </TooltipProvider> </DndProvider> )}