Skip to content
Steve Ridout edited this page Sep 21, 2012 · 11 revisions

All user data and settings are stored within the browser on the user's local machine, so the server can be completely stateless.

The CSLEDIT_storage (src/storage.js) module wraps localStorage to provide persistent storage for the editor, or falls back to a basic session storage implementation if localStorage isn't available. It exposes the same setItem, getItem, removeItem and clear functions as localStorage.

It's used in these places:

Search by Name and Search by Example

  • Not used by default. But the reference implementation uses it when the Edit button is pressed to store the CSL style before opening the Visual Editor page.

Visual Editor

Code Editor

  • The CSL style
  • The example citations

You can view and reset the current local storage from the settings page.