1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3334 from Steve-Mcl/fix-monaco-expanded

load extralibs when expanding monaco. fixes #3319
This commit is contained in:
Nick O'Leary 2022-01-10 18:23:07 +00:00 committed by GitHub
commit ce98ed98a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -81,7 +81,8 @@
clearTimeout: true, clearTimeout: true,
setInterval: true, setInterval: true,
clearInterval: true clearInterval: true
} },
extraLibs: options.extraLibs
}); });
if (options.cursor) { if (options.cursor) {
expressionEditor.gotoLine(options.cursor.row+1,options.cursor.column,false); expressionEditor.gotoLine(options.cursor.row+1,options.cursor.column,false);

View File

@ -512,6 +512,7 @@
return function(e) { return function(e) {
e.preventDefault(); e.preventDefault();
var value = editor.getValue(); var value = editor.getValue();
var extraLibs = that.libs || [];
RED.editor.editJavaScript({ RED.editor.editJavaScript({
value: value, value: value,
width: "Infinity", width: "Infinity",
@ -523,7 +524,8 @@
setTimeout(function() { setTimeout(function() {
editor.focus(); editor.focus();
},300); },300);
} },
extraLibs: extraLibs
}) })
} }
} }