Skip to content

[Feature] Add Ctrl/Cmd+S save shortcut in Monaco code editors #19

In progress

Description

@cherepanov

Wire optional onSave through Designer Monaco CodeEditor so GenericCodeEditor can save from Ctrl/Cmd+S without depending on autoformat.

Area: FormEngine Designer

Scope:

  • Add registerCodeEditorSaveAction and optional onSave on CodeEditor props.
  • Register Ctrl/Cmd+S on constrained and unconstrained Monaco editors (constrained saves editable body only).
  • Wire GenericCodeEditor so the toolbar Save path and editor save chord share the same persist logic.
  • Cover with module and component tests; update Form Author Guide shortcut docs.

Acceptance criteria:

  • Ctrl/Cmd+S in the bottom code editor saves the script (same as Save), not the form.
  • Constrained editors pass only the editable body to onSave.
  • Editors without onSave keep current behavior aside from action registration.
  • Guide pages document the chord and form-vs-script distinction.
  • npm run check-all passes.

Activity

  1. added this to the 12.2.0 milestone on Nov 25, 2026
  2. added
    needs triage
    feature
    on Nov 25, 2026
  3. self-assigned this
    on Nov 25, 2026
  4. added a commit that references this issue on Nov 25, 2026
  5. modified the milestones: 12.2.0, next on Nov 29, 2026
  6. added 5 commits that reference this issue on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureneeds triage

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions