Skip to content

Local Storage Usage

Zach edited this page Mar 14, 2019 · 6 revisions

The editor uses local storage for several preferences that might make sense to move into a more sophisticated user profile management system in the future. These uses of local storage are documented here as a reminder of the preferences that would need to be accounted for with any server-side/db management system.

  1. ContentElement clipboard

The editor saves the active ContentElement currently selected when using the cut/copy functions in the editor toolbar. This persists the element with its toPersistence method and saves it as JSON in local storage. Imgur Imgur

  1. Active Organization

The editor saves the most recently selected organization and sets it as active when a course is first opened.

Imgur

  1. Navigation sidebar settings

The editor saves the current state of the lefthand organization navbar (width and collapsed). These preferences are local to the currently logged-in user.

Imgur

  1. Redux logging

We allow the use of an optional redux logger that if enabled will set the browser preference in local storage for redux-logging to true.

Clone this wiki locally