Skip to content

composer: save without a full page reload #17

Description

@sotashimozono

Current state: saving in the composer POSTs /noteadd / /noteedit (with from=compose) and 303-redirects back to /compose?id=…, i.e. a full page reload — CodeMirror re-initializes and scroll/cursor position is lost.

Desired: an optimistic / fetch-based save that keeps the editor state in place (update the note id + preview in the DOM, no reload). The rest of the app already uses this optimistic-write pattern in public/app.js.

Pointers: web/src/app.js (/noteadd, /noteeditredirect(...)), web/src/render/notes.js (renderCompose #cmp-form), web/public/app.js.

Related: the composer "live preview" issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjavascriptPull requests that update javascript code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions