Trevixal API
    Preparing search index...

    Function createAutosave

    • Autosave the editor into a store. Every edit marks the document dirty and schedules a write; the page hiding or unloading writes immediately, so the draft is never more than one debounce behind. Backups are taken on a slower clock while edits keep coming, and pruned to the newest few.

      Parameters

      Returns Autosave