mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
7148dfcf3f
Depends on latest OOUI, and therefore MW 1.29. Change-Id: I91594f534a2dca657785357a1dcb39e86d072bac
117 lines
2.6 KiB
JSON
117 lines
2.6 KiB
JSON
{
|
|
"name": "CodeEditor",
|
|
"author": [
|
|
"Brion Vibber",
|
|
"Derk-Jan Hartman",
|
|
"authors of Ace (ace.c9.io)"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:CodeEditor",
|
|
"descriptionmsg": "codeeditor-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "other",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.29.0",
|
|
"extensions": {
|
|
"WikiEditor": "*"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"EditPage::showEditForm:initial": [
|
|
"CodeEditorHooks::editPageShowEditFormInitial"
|
|
],
|
|
"EditPage::showReadOnlyForm:initial": [
|
|
"CodeEditorHooks::editPageShowEditFormInitial"
|
|
],
|
|
"GetPreferences": [
|
|
"CodeEditorHooks::getPreferences"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"CodeEditor": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"config": {
|
|
"CodeEditorEnableCore": true
|
|
},
|
|
"ResourceModules": {
|
|
"ext.codeEditor": {
|
|
"scripts": "ext.codeEditor.js",
|
|
"dependencies": [
|
|
"ext.wikiEditor.toolbar",
|
|
"jquery.codeEditor"
|
|
],
|
|
"group": "ext.wikiEditor"
|
|
},
|
|
"jquery.codeEditor": {
|
|
"scripts": "jquery.codeEditor.js",
|
|
"styles": "jquery.codeEditor.less",
|
|
"dependencies": [
|
|
"jquery.wikiEditor",
|
|
"ext.codeEditor.ace",
|
|
"jquery.ui.resizable",
|
|
"mediawiki.api",
|
|
"mediawiki.api.options",
|
|
"user.options",
|
|
"mediawiki.cookie",
|
|
"jquery.textSelection",
|
|
"oojs-ui-windows"
|
|
],
|
|
"messages": [
|
|
"codeeditor-next-annotation",
|
|
"codeeditor-toolbar-toggle",
|
|
"codeeditor-save-with-errors",
|
|
"codeeditor-invisibleChars-toggle",
|
|
"codeeditor-lineWrapping-toggle",
|
|
"codeeditor-searchReplace-toggle",
|
|
"codeeditor-gotoline",
|
|
"codeeditor-gotoline-placeholder",
|
|
"codeeditor-gotoline-prompt",
|
|
"codeeditor-indent",
|
|
"codeeditor-outdent"
|
|
],
|
|
"group": "ext.wikiEditor"
|
|
},
|
|
"ext.codeEditor.ace": {
|
|
"group": "ext.codeEditor.ace",
|
|
"scripts": [
|
|
"ace/ace.js",
|
|
"ace/mode-javascript.js",
|
|
"ace/mode-json.js",
|
|
"ace/mode-css.js",
|
|
"ace/mode-lua.js",
|
|
"ace/ext-language_tools.js",
|
|
"ace/ext-modelist.js"
|
|
]
|
|
},
|
|
"ext.codeEditor.ace.modes": {
|
|
"group": "ext.codeEditor.ace",
|
|
"scripts": [
|
|
"ace/mode-c_cpp.js",
|
|
"ace/mode-clojure.js",
|
|
"ace/mode-csharp.js",
|
|
"ace/mode-coffee.js",
|
|
"ace/mode-groovy.js",
|
|
"ace/mode-html.js",
|
|
"ace/mode-java.js",
|
|
"ace/mode-latex.js",
|
|
"ace/mode-ocaml.js",
|
|
"ace/mode-perl.js",
|
|
"ace/mode-php.js",
|
|
"ace/mode-python.js",
|
|
"ace/mode-ruby.js",
|
|
"ace/mode-scala.js"
|
|
],
|
|
"dependencies": "ext.codeEditor.ace"
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "CodeEditor/modules"
|
|
},
|
|
"AutoloadClasses": {
|
|
"CodeEditorHooks": "CodeEditor.hooks.php"
|
|
},
|
|
"manifest_version": 1
|
|
}
|