(Bug 42561) Enable Ace's JSON mode

MZMcBride suggested CodeEditor should be deployed to Meta, citing the
need for a JSON-aware interface for editing articles in the new
Schema: namespace, which are JSON-encoded. The bundled distribution of
ACE supports JSON, but the extension does not include it as one of the
file formats it supports.

Change-Id: Ice63dece67c732b76c23abc617782332435427cf
This commit is contained in:
Ori Livneh 2012-11-30 20:16:19 -08:00
parent 33178edcee
commit 4ae61874af
2 changed files with 2 additions and 0 deletions

View file

@ -58,6 +58,7 @@ $wgResourceModules['ext.codeEditor.ace'] = array(
'scripts' => array( 'scripts' => array(
'ace/ace.js', 'ace/ace.js',
'ace/mode-javascript.js', 'ace/mode-javascript.js',
'ace/mode-json.js',
'ace/mode-css.js', 'ace/mode-css.js',
'ace/mode-lua.js', 'ace/mode-lua.js',
), ),

View file

@ -46,6 +46,7 @@ $(function() {
java5: 'java', java5: 'java',
javascript: 'javascript', javascript: 'javascript',
jquery: 'javascript', jquery: 'javascript',
json: 'json',
ocaml: 'ocaml', ocaml: 'ocaml',
perl: 'perl', perl: 'perl',
php: 'php', php: 'php',