Merge pull request #1398 from mvanhorn/osc/1373-platefile-jsdoc-mod-shift-s-dev

docs(editor): align PlateEditor onSave JSDoc with Mod+Shift+S chord
This commit is contained in:
Rohan Verma 2026-05-15 11:28:15 -07:00 committed by GitHub
commit 953c654452
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ export interface PlateEditorProps {
editorVariant?: "default" | "demo" | "fullWidth" | "none";
/** Additional className for the container */
className?: string;
/** Save callback. When provided, ⌘+S / Ctrl+S shortcut is registered and save button appears. */
/** Save callback. When provided, ⌘+Shift+S / Ctrl+Shift+S shortcut is registered (avoiding the browser's ⌘+S / Ctrl+S "Save Page As" conflict) and a save button appears in the toolbar. */
onSave?: () => void;
/** Whether there are unsaved changes */
hasUnsavedChanges?: boolean;