Just for the sake of completeness, as you've already suggested, you
might want to set more than just readOnly:
config.options.chkHttpReadOnly = false;
readOnly = false;
showBackstage = true;
(cf. http://tiddlywiki.org/wiki/Read-Only_Mode)
TW does not have a handler to update itself [...]
Is there a way to prevent editing after TW has initialized?
After setting these values, you probably wanna do this:
refreshAll();
story.refreshAllTiddlers();
ISTR there were possible side-effects here, like opened tiddlers being
closed or form fields being reset - however, I cannot reproduce this
now, so I'm probably misremembering.
FWIW, TiddlyWebWiki sets read-only mode for each tiddler individually
(though async is not required here, as TiddlyWeb attaches permissions
info to each tiddler):
http://trac.tiddlywiki.org/browser/Trunk/association/plugins/TiddlyWebConfig.js?rev=11829#L63
Could you elaborate on your use case - perhaps there's an alternative
approach we could help you with.
-- F.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.