mediawiki-extensions-WikiEd.../modules/ext.wikiEditor.toolbar.js

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() );
} );