Fix inconsistent and broken monaco editor loading
This commit is contained in:
parent
4b527816ba
commit
93397a164d
@ -3,7 +3,8 @@
|
||||
class MonacoEditorHooks {
|
||||
|
||||
public static function editPageShowEditFormInitial(EditPage $editpage, OutputPage $output){
|
||||
$output->addScript('<script type="text/javascript" src="/extensions/MonacoEditor/assets/js/scripts.js"></script>');
|
||||
$output->addHeadItem('monaco-loader', '<script type="text/javascript" src="/extensions/MonacoEditor/node_modules/monaco-editor/min/vs/loader.js"></script>');
|
||||
$output->addScript('<script type="text/javascript" src="/extensions/MonacoEditor/assets/js/scripts.js" async></script>');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
1264
assets/js/scripts.js
1264
assets/js/scripts.js
File diff suppressed because it is too large
Load Diff
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,6 +1,8 @@
|
||||
{
|
||||
"requires": true,
|
||||
"name": "mediawiki-monacoeditor",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"monaco-editor": {
|
||||
"version": "0.20.0",
|
||||
|
Reference in New Issue
Block a user