Over the past few weeks, I have been pondering how to provide an editing environment for my guns TW. I have played around with providing a bespoke form for each tiddler type and this works. My concern though is over the medium term, things will change and I may not be around to provide the technical support needed to effect such change.
So I fall back on TW’s inbuilt editor.
I like this approach in that the editor is tiddler independent, any tiddler can be edited with it, and the fact that the TW development team essentially provide support through new TW versions, etc.
The downside, for me at any rate, is that I can not see how I can have the conclusion of an editing session invoke TW script to verify stuff, propagate new values through to other tiddlers, etc. I can do that in a bespoke setting by having an ‘UPDATE’ button to terminate the session and call appropriate script as needed.
Whilst reading the documentation, I came across the tiddler ’Customizing EditTemplate field rendering’. This implies that I can have control over how the default editor displays and hence manipulates any field. What is unclear to me though is whether, if I specify a specific display for a field, that display replaces the equivalent display through the normal editor or does this provide a replacement for the whole editor display itself?
The reason I ask is because many of my tiddlers have numerous fields as well as lots of formatted text in the TEXT field and I don’t want to have to replace the text field editing facility but I also do not want my uses to have to choose between one or many editors cause they’ll stuff it up for sure.
And then, is there any way to intercept a session termination event so as to allow me to propagate new values through my TW or a session cancel event to quit the editor without making any changes?
Has anyone done any of this and if so can they provide some advice?
bobj


