The spellchecker needs a hook near the end of
getEditToolbar that is
passed the toolbar variable. The extension adds a spellcheck button to
the toolbar.
You couldn't just use the existing JavaScript-based support
functions
for adding custom edit buttons?
Or look at how
http://www.mediawiki.org/wiki/Extension:Add_Button does it.
It might be possible to use a similar method as this extension.
Add_Button stuffs its custom js into the page by way of the
ParserBeforeTidy hook. Do you know of a more appropriate hook offhand?
> Track
changes needs SkinTemplateTabs to pass in revid and oldid so that
> it can display oldid if specified in the query string or revid if it
was:
> $oldid = $wgRequest->getVal(
'oldid' );
> global $wgArticle;
> $revid = $wgArticle ? $wgArticle->getLatest() : 0;
Not very clear about this point. Can you elaborate?
I'd like to retract the paragraph in my previous e-mail. This code was
moved entirely into the extension:
global $wgArticle, $wgRequest;
$oldid = $wgRequest->getVal( 'oldid' );
$revid = $wgArticle ? $wgArticle->getLatest();
The extra parameters to the SkinTemplateTabs hook are no longer needed.
Thanks.