Last modified: 2014-11-15 20:31:39 UTC
bug 30713 will add "wikipage.content" passing it #mw-content-text, and will fire it on initial load and from live preview (and other code like VisualEditor and other extensions/gadgets should also fire it when they replace/update the content). A few others we should add for things outside the content: * wikipage.categories arguments: .catlinks Fired initially and from live preview. e.g. for things like HotCat to listen to * wikipage.langlinks arguments: #p-lang Fire initially if #p-lang exists/non-empty, and from live preview. * wikipage.diff arguments: #wikiDiff Fire initially if page has a diff on it, and from live preview if user did "show changes". e.g. for patrolling tools to hook into the diff and the [mark as patrolled] link. * wikipage.editform arguments: (common parent of .mw-summary-preview, .templatesUsed, .hiddencats) e.g. for vector.footerCleanup and other things that hook into this.
These are easy to add. Holding off until usage of "wikipage.content" is slightly more widespread and we have more use cases for these (e.g. will HotCat be able to use this? etc.) If you need one of these hooks, please let it know here including a brief description of how/where you'd like to use it. That'll help to shape the details of exactly where these hooks would go.
As the Target Milestone on this ticket has been set to 1.22.0: According to http://lists.wikimedia.org/pipermail/wikitech-l/2013-September/072030.html "MediaWiki 1.22 is slated for release on November 30th, at the very latest." If this is still intended to get fixed for 1.22.0, a patch is needed soon.
[Bumping TM as MediaWiki 1.22.0 tarball was released today.]
Removing target milestone that was in the past. If you want this in a specific release, have a good reason AND you are willing to find resources to fix this bug, feel free to change it to something appropriate.