MediaWiki:Common.js: Difference between revisions

Hey, that worked. I guess the rest of the toolbar editing stuff should go in there...
No edit summary
(Hey, that worked. I guess the rest of the toolbar editing stuff should go in there...)
Line 6: Line 6:
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
// Configure a new toolbar entry on the given $textarea jQuery object.
// Configure a new toolbar entry on the given $textarea jQuery object.
$textarea.wikiEditor( 'addToToolbar', {
//Begin all the $textarea.wikiEditor stuff
$textarea.wikiEditor( 'addToToolbar', {
section: 'advanced',
section: 'advanced',
group: 'format',
group: 'format',
Line 24: Line 26:
}
}
} );
} );
} );
}


$textarea.wikiEditor( 'addToToolbar', {
$textarea.wikiEditor( 'addToToolbar', {
Line 113: Line 110:
}
}
} );
} );
//End all the $textarea.wikiEditor stuff-->
} );
}