feat: introduce plugin presets for PlateEditor, allowing flexible configuration of editor features

This commit is contained in:
Anish Sarkar 2026-02-18 03:49:28 +05:30
parent fed500ce34
commit e34921eac4
4 changed files with 111 additions and 32 deletions

View file

@ -466,6 +466,7 @@ export default function EditorPage() {
<div className="flex-1 min-h-0">
<PlateEditor
key={documentId}
preset="full"
markdown={document?.source_markdown ?? ""}
onMarkdownChange={handleMarkdownChange}
onSave={handleSave}