mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
docs(editor): align PlateEditor onSave JSDoc with Mod+Shift+S chord
Per #1373, the registered save chord is Mod+Shift+S (not Mod+S, which collides with the browser's Save-Page-As). The JSDoc on PlateEditorProps.onSave still claims Mod+S, which is misleading for downstream consumers of the component. Update the JSDoc to match the actual chord and call out why. Targeting dev per maintainer request.
This commit is contained in:
parent
eea2d68098
commit
f0a51fad6f
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export interface PlateEditorProps {
|
||||||
editorVariant?: "default" | "demo" | "fullWidth" | "none";
|
editorVariant?: "default" | "demo" | "fullWidth" | "none";
|
||||||
/** Additional className for the container */
|
/** Additional className for the container */
|
||||||
className?: string;
|
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;
|
onSave?: () => void;
|
||||||
/** Whether there are unsaved changes */
|
/** Whether there are unsaved changes */
|
||||||
hasUnsavedChanges?: boolean;
|
hasUnsavedChanges?: boolean;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue