Building Editors for the Web
Beautifully designed. Copy and paste into your apps. Open Source.app/editor/page.tsx
import EditorSelectForm from '@/components/select-editor-demo';
export default function Page() {
return (
<div className="flex h-screen w-full justify-center" data-registry="plate">
<EditorSelectForm />
</div>
);
}
app/editor/page.tsx
import { Toaster } from 'sonner';
import { PlateEditor } from '@/components/editor/plate-editor';
import { SettingsProvider } from '@/components/editor/settings';
export default function Page() {
return (
<div className="h-screen w-full" data-registry="plate">
<SettingsProvider>
<PlateEditor />
</SettingsProvider>
<Toaster />
</div>
);
}
app/editor/page.tsx
import { PlateEditor } from '@/components/editor/plate-editor';
export default function Page() {
return (
<div className="h-screen w-full" data-registry="plate">
<PlateEditor />
</div>
);
}