-
-
Notifications
You must be signed in to change notification settings - Fork 35
Storage
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
- 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.