-
Notifications
You must be signed in to change notification settings - Fork 43
Description
I was interested to see how far I could go using local storage as well as saving annotations server-side, and especially how well those two approaches might play together. What I did was to use local storage for the duration of the browser cache and pull the annotations from local storage if the user creating the annotations decides to save them on the server (in this case, on a wiki). Of course, what happens when your local storage is still intact and you open a manifest that has the previously created annotations merged in or referenced, you'll see duplicates. Interestingly, whichever duplicate you choose, it does appear to be editable.
What I did was to make sure that the relevant items in local storage are cleared and the page is refreshed when the user hits "Save". When a user opens the new manifest (with the annotations referenced), the annotations appear without duplication. So far so good, but there is a problem: they are not editable! In other words, annotations that are referenced, or embedded, do not automatically become available in local storage.
What I am requesting is a config option (but not the new default) to load all existing annotations as local storage items so that they can be edited or removed in a subsequent session, whether by the same user or someone else.