[email protected] wrote:
> Ok guys,
> 
> now I use the latest development trunk of the UsabilityInitiative but
> the additional button still doesn't appear.
> 
> Any further ideas?
> 
> Here once again my vector.js: http://wiki.ziesche.de/wiki/MediaWiki:Vector.js
> 
> 
> robert


Your braces are wrong. Replace it with this:
addOnloadHook( function() {
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
               // Add in the advanced toolbar
               $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                       'section': 'advanced',
                       'group': 'insert',
                       'tools': {
                               'Code': {
                                       icon:
'http://upload.wikimedia.org/wikipedia/commons/2/21/Button_invalid_template.png',
                                       'type': 'button',
                                       'label': '<code>',
                               action: {
                                               type: 'encapsulate',
                                               options: {
                                                       pre: "<code>",
                                                       post: "</code>"
                                               }
                                       }
                               }
                           }
               } );
       }
} );



_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to