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

Data storage

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

The src/storage module wraps localStorage to provide persistent storage for the editor. The different pages use the storage as follows:

  • Search by Name and Search by Example

    • Not used in the core library, although the reference implementation uses it when the Edit button is pressed to store the style before opening the Visual Editor page.
  • Visual Editor

    • The CSL data
    • The example citations metadata and options
    • An alternative CSL schema (experimental: you can set an alternative schema on the settings page)
    • The state of the layout panes
  • Code Editor

    • The CSL data

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