Update moved class EditPage

See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: I5a66b76658c3eb19f2afe5b9a8ce4748767e6c2d
This commit is contained in:
gerritbot 2023-05-06 21:19:29 +00:00
parent 83ec48d13f
commit 417ce7bebf
2 changed files with 24 additions and 8 deletions

View file

@ -10,7 +10,7 @@
"license-name": "GPL-2.0-or-later AND BSD-3-Clause",
"type": "editor",
"requires": {
"MediaWiki": ">= 1.35.0",
"MediaWiki": ">= 1.40.0",
"extensions": {
"WikiEditor": ">= 0.5.2"
}
@ -39,7 +39,10 @@
},
"ResourceModules": {
"ext.codeEditor": {
"targets": [ "desktop", "mobile" ],
"targets": [
"desktop",
"mobile"
],
"scripts": "ext.codeEditor.js",
"dependencies": [
"jquery.codeEditor"
@ -47,7 +50,10 @@
"group": "ext.wikiEditor"
},
"jquery.codeEditor": {
"targets": [ "desktop", "mobile" ],
"targets": [
"desktop",
"mobile"
],
"scripts": "jquery.codeEditor.js",
"styles": "jquery.codeEditor.less",
"dependencies": [
@ -95,16 +101,23 @@
},
"pilcrow": {
"file": "images/pilcrow.svg",
"variants": [ "progressive" ]
"variants": [
"progressive"
]
},
"wrapping": {
"file": "images/wrapping.svg",
"variants": [ "progressive" ]
"variants": [
"progressive"
]
}
}
},
"ext.codeEditor.ace": {
"targets": [ "desktop", "mobile" ],
"targets": [
"desktop",
"mobile"
],
"group": "ext.codeEditor.ace",
"scripts": [
"ace/ace.js",
@ -120,7 +133,10 @@
]
},
"ext.codeEditor.ace.modes": {
"targets": [ "desktop", "mobile" ],
"targets": [
"desktop",
"mobile"
],
"group": "ext.codeEditor.ace",
"scripts": [
"ace/mode-c_cpp.js",

View file

@ -2,9 +2,9 @@
namespace MediaWiki\Extension\CodeEditor;
use EditPage;
use ErrorPageError;
use ExtensionRegistry;
use MediaWiki\EditPage\EditPage;
use MediaWiki\Hook\EditPage__showEditForm_initialHook;
use MediaWiki\Hook\EditPage__showReadOnlyForm_initialHook;
use MediaWiki\HookContainer\HookContainer;