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 { Plate, PlateContent, usePlateEditor } from 'platejs/react';import { DndKit } from '@/components/editor/plugins/dnd-kit';import { TooltipProvider } from '@/components/ui/tooltip';const initialValue = [ { type: 'p', children: [{ text: 'Drag the handle beside any block to reorder it.' }] }, { type: 'p', children: [{ text: 'Each paragraph can be moved above or below its neighbors.' }] }, { type: 'p', children: [{ text: 'Try moving this one to the top.' }] },];export default function DndKitDemo() { const editor = usePlateEditor({ plugins: [...DndKit], value: initialValue, }); return ( <TooltipProvider> <Plate editor={editor}> <PlateContent className="w-full max-w-lg rounded-md border p-4 focus:outline-none" placeholder="Type something..." /> </Plate> </TooltipProvider> );}