On 2011-02-17 3:10 PM, Strainu wrote:
Hi all, I'm trying to modify an existing Vector toolbar section. I found the following at http://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization , in the "Modifying things" section:
"The best we have is a hook to change the configuration of a section just before it's being built:"
However, since the MediaWiki:Common.js and the user JS are loaded at the very end of the page, the toolbar is already built by the time I try to modify it. I tested with the code at http://ro.wikipedia.org/wiki/MediaWiki:Toolbar.js and what I noticed is that, while the exterior function is being called, the callback function is not.
Could someone give me any pointers on how to make a new page in the existing 'characters' section? (I was able to add one in a newly added section just fine, but I want it in the characters section)
Thanks, Strainu
P.S. I take this opportunity to renew my appeal for a simplified, non-technical way to add elements to the toolbar (bug 25068)
See the functions addVietCharPage() and bindVietCharPage() at the bottom of http://vi.wikipedia.org/wiki/MediaWiki:Common.js/edit.js. (The line about "#charinsert-viet" won't be necessary.)