Created
September 15, 2014 13:07
-
-
Save he7d3r/f3bf05e54cfb1bb7da39 to your computer and use it in GitHub Desktop.
Disable CodeEditor auto pairing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global jQuery, mediaWiki */ | |
( function ( mw, $ ) { | |
'use strict'; | |
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) === -1 ) { | |
return; | |
} | |
mw.hook( "codeEditor.configure" ).add( function( editorSession ) { | |
editorSession.setBehavioursEnabled( false ); | |
} ); | |
}( mediaWiki, jQuery ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment