mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-01 03:17:04 +00:00
8ca58dd46b
Please review this to check if this is the right way to do it!
15 lines
453 B
JavaScript
15 lines
453 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Toolbar
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) {
|
|
return;
|
|
}
|
|
// The old toolbar is still in place and needs to be removed so there aren't two toolbars
|
|
$( '#toolbar' ).remove();
|
|
// Add toolbar module
|
|
// TODO: Implement .wikiEditor( 'remove' )
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', $.wikiEditor.modules.toolbar.config.getDefaultConfig() );
|
|
} );
|