'TiddlyWiki: How does TiddlyWiki save its changes to itself on the local file system?

How does TiddlyWiki save its changes to itself on the local file system? And how does TiddlyWiki keep the each tiddler's change until "Save Changes" is executed?

I want to understand the mechanisms. But I cannot figure it out from the source code.

Could you help insufficient-knowledge-of-JavaScript people like me?

Thank you,



Solution 1:[1]

In general? Poorly. The TiddlyWiki web site has details, but in brief:

  • TiddlyWiki allows a wiki to be saved by generating a new HTML file in Javascript which represents the saved contents of the wiki, and presenting this to the user as a download. The user must explicitly replace the old file with the new downloaded copy for this to work properly.

  • The TiddlyFox extension for Firefox explicitly allows a TiddlyWiki HTML file to overwrite itself. Maybe. (The comments on the extension suggest this may not even work properly anymore.)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1