-
-
Notifications
You must be signed in to change notification settings - Fork 35
Storage
SteveRidout edited this page Sep 5, 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 src/storage.js
module wraps localStorage to provide persistent storage for the editor, or falls back to simple session storage if localStorage isn't available. The different pages use the storage as follows:
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
- The CSL style
- The example citations
- The state of the layout panes
- Experimental: you can set an alternative CSL schema on the [settings page] (https://github.com/citation-style-editor/csl-editor/blob/master/pages/settings.html)
Code Editor
- The CSL style
- The example citations
You can view and reset the current local storage from the settings page.