I’m sure this is a simple question, but I can’t find the state of “is the wiki dirty” anywhere. I’ve searched for “dirty” and “save” across system and shadow tiddlers.
I found @TW_Tones’ “Reset Dirty save status” (Prevent "Prevent leave" / "You have unsaved changes" - #5 by TW_Tones), which uses JS to read $tw.saverHandler.numChanges
.
Is there any way to read the “unsaved” state from wikitext?