mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-28 18:21:02 +00:00
9d6f6e3526
2. Makes the isEnabled function public, to allow other extensions to use the same configuration settings as WikiEditor.
15 lines
385 B
JavaScript
15 lines
385 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Dialogs
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.dialogs ) ) {
|
|
return;
|
|
}
|
|
|
|
// Replace icons
|
|
$.wikiEditor.modules.dialogs.config.replaceIcons( $( '#wpTextbox1' ) );
|
|
|
|
// Add dialogs module
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', $.wikiEditor.modules.dialogs.config.getDefaultConfig() );
|
|
} ); |