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

13 lines
365 B
JavaScript
Raw Normal View History

/*
* JavaScript for WikiEditor Toolbar
*/
jQuery( function ( $ ) {
// 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()
);
} );