Brion Vibber wrote:
I would like to generate different output
depending on whether my
extension code is triggered for a preview, or for a save.
Please don't. Among
other things, this defeats the purpose of a preview.
I can certainly see where this might actually be a good thing to do.
For example in the case of Aevar's <ref> extension it has been suggested
that in cases where a section is being edited which contains <ref> tags but
no <references/> tag, the extension might be able to produce a preview of
what would appear without the user having to introduce a temporary
<references/> (which would run the risk of their forgetting to remove it
View this message in context: http://www.nabble.com/DISPLAYTITLE-t1429950.html#a3899914
Sent from the Wikipedia Developers forum at Nabble.com