mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-27 16:40:07 +00:00
(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:
parent
33178edcee
commit
4ae61874af
|
@ -58,6 +58,7 @@ $wgResourceModules['ext.codeEditor.ace'] = array(
|
|||
'scripts' => array(
|
||||
'ace/ace.js',
|
||||
'ace/mode-javascript.js',
|
||||
'ace/mode-json.js',
|
||||
'ace/mode-css.js',
|
||||
'ace/mode-lua.js',
|
||||
),
|
||||
|
|
|
@ -46,6 +46,7 @@ $(function() {
|
|||
java5: 'java',
|
||||
javascript: 'javascript',
|
||||
jquery: 'javascript',
|
||||
json: 'json',
|
||||
ocaml: 'ocaml',
|
||||
perl: 'perl',
|
||||
php: 'php',
|
||||
|
|
Loading…
Reference in a new issue