mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-28 02:00:34 +00:00
removed addMediaWizard gadget ( should be supported via dedicated extension 'AddMediaWizard' )
This commit is contained in:
parent
a2a3d01898
commit
203a9133a2
|
@ -38,11 +38,7 @@ $wgWikiEditorFeatures = array(
|
|||
'templateEditor' => array( 'global' => false, 'user' => false ),
|
||||
// Bare-bones (probably broken) template collapsing
|
||||
'templates' => array( 'global' => false, 'user' => false ),
|
||||
|
||||
/* Unknown status */
|
||||
|
||||
// Adds the AddMediaWizard gadget to the toolbar
|
||||
'addMediaWizard' => array( 'global' => false, 'user' => false ),
|
||||
|
||||
);
|
||||
|
||||
/* Setup */
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* JavaScript for WikiEditor AddMediaWizard integration
|
||||
*/
|
||||
|
||||
$( document ).ready( function() {
|
||||
if ( typeof mwAddMediaConfig == 'undefined' ) {
|
||||
mwAddMediaConfig = {};
|
||||
}
|
||||
mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ];
|
||||
// Transclude mwEmbed support
|
||||
mediaWiki.loader.load(
|
||||
'http://prototype.wikimedia.org/s-2/js/mwEmbed/remotes/mediaWiki.js?&uselang=' + wgUserLanguage,
|
||||
'text/javascript'
|
||||
);
|
||||
};
|
Loading…
Reference in a new issue