1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00
TiddlyWiki5/plugins/tiddlywiki/browser-storage
2019-02-03 12:51:15 +00:00
..
plugin.info BrowserStorage: A new plugin to save tiddlers to local storage 2019-02-03 12:51:15 +00:00
rawmarkup.js BrowserStorage: A new plugin to save tiddlers to local storage 2019-02-03 12:51:15 +00:00
rawmarkup.tid BrowserStorage: A new plugin to save tiddlers to local storage 2019-02-03 12:51:15 +00:00
readme.tid BrowserStorage: A new plugin to save tiddlers to local storage 2019-02-03 12:51:15 +00:00
startup.js BrowserStorage: A new plugin to save tiddlers to local storage 2019-02-03 12:51:15 +00:00

title: $:/plugins/tiddlywiki/browser-storage/readme

This plugin enables TiddlyWiki to save tiddlers in [[browser local storage|https://en.wikipedia.org/wiki/Web_storage#localStorage]]. This means that changes are stored within the browser, and automatically re-applied any time the base wiki is reloaded.

At startup, the plugin reads tiddlers from local storage. Any tiddlers that are identical to those built into the file are deleted from local storage. Once the wiki is up and running, any tiddler changes are written straight to local storage.

Browser local storage is not a panacea for TiddlyWiki:

* Browsers limit the amount of local storage available to a page, typically to 5 or 10MB
* Keeping personal data in browser local storage can lead to unexpected privacy violations
* Browsers reserve the right to without warning delete data stored in local storage at any time
* Browsers tie local storage to a URL which can lead to problems if you move a wiki to a URL previously occupied by a different wiki

Please use this plugin with caution. There are a number of unresolved issues and open questions:

* An "red screen of embarrassment" error is raised when local storage is full
* Innerwikis read the local storage of their parent wikis
* This plugin does not interfere with the existing saver mechanism, so you'll still get warnings when refreshing the page, even if your changes are safely committed to local storage