mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-02 17:56:15 +00:00
fd51de0222
Change-Id: Iecbce4695e2a31447741d1d64dd8b575fd8c3865
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
/*global CodeMirror*/
|
|
jQuery( document ).ready( function ( $ ) {
|
|
var textbox1 = $( '#wpTextbox1' );
|
|
var codeMirror = CodeMirror.fromTextArea( textbox1[0], {
|
|
styleActiveLine: true,
|
|
//lineNumbers: true,
|
|
lineWrapping: true,
|
|
//indentUnit: 4,
|
|
//indentWithTabs: true
|
|
//matchBrackets: true,
|
|
//autoCloseBrackets: true,
|
|
mode: 'text/mediawiki'
|
|
} );
|
|
codeMirror.setSize( null, textbox1.height() );
|
|
} );
|