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)
2011/2/18 Strainu strainu10@gmail.com:
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)
See // To add a page to an existing booklet section that should give you all the information you need. If you don't get it to work, I recommend asking someone on IRC (like me, if I weren't going to bed soon).
Roan Kattouw (Catrope)
I can help you as well, there's an API that lets you add things after load. Examples of this are in the test file.
- Trevor
On Feb 17, 2011, at 3:46 PM, Roan Kattouw wrote:
2011/2/18 Strainu strainu10@gmail.com:
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)
See // To add a page to an existing booklet section that should give you all the information you need. If you don't get it to work, I recommend asking someone on IRC (like me, if I weren't going to bed soon).
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
This is the tests file.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/WikiEditor/module...
- Trevor
On Feb 17, 2011, at 3:48 PM, Trevor Parscal wrote:
I can help you as well, there's an API that lets you add things after load. Examples of this are in the test file.
- Trevor
On Feb 17, 2011, at 3:46 PM, Roan Kattouw wrote:
2011/2/18 Strainu strainu10@gmail.com:
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)
See // To add a page to an existing booklet section that should give you all the information you need. If you don't get it to work, I recommend asking someone on IRC (like me, if I weren't going to bed soon).
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
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.)
2011/2/21 Minh Nguyen mxn@1ec5.org:
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.)
-- Minh Nguyen mxn@1ec5.org AIM: trycom2000; Jabber: mxn@1ec5.org; Blog: http://notes.1ec5.org/
Working out of the box Minh! Looks like the solution was a combination between what was written in the page http://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization .
Thanks a million! Strainu
wikitech-l@lists.wikimedia.org