mediawiki-extensions-WikiEd.../modules/ext.wikiEditor.toolbar.js
Ed Sanders 84926bbd33 Remove browser compatibility checks
WikiEditor works in all browsers that MW supports,
and should do going forward.

Change-Id: I189516917d805dff3819e742a9fd8ad96a161159
2018-01-02 21:44:59 +00:00

13 lines
365 B
JavaScript

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