mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #3334 from Steve-Mcl/fix-monaco-expanded
load extralibs when expanding monaco. fixes #3319
This commit is contained in:
		| @@ -81,7 +81,8 @@ | ||||
|                             clearTimeout: true, | ||||
|                             setInterval: true, | ||||
|                             clearInterval: true | ||||
|                         } | ||||
|                         }, | ||||
|                         extraLibs: options.extraLibs | ||||
|                     }); | ||||
|                     if (options.cursor) { | ||||
|                         expressionEditor.gotoLine(options.cursor.row+1,options.cursor.column,false); | ||||
|   | ||||
| @@ -512,6 +512,7 @@ | ||||
|                 return function(e) { | ||||
|                     e.preventDefault(); | ||||
|                     var value = editor.getValue(); | ||||
|                     var extraLibs = that.libs || []; | ||||
|                     RED.editor.editJavaScript({ | ||||
|                         value: value, | ||||
|                         width: "Infinity", | ||||
| @@ -523,7 +524,8 @@ | ||||
|                             setTimeout(function() { | ||||
|                                 editor.focus(); | ||||
|                             },300); | ||||
|                         } | ||||
|                         }, | ||||
|                         extraLibs: extraLibs | ||||
|                     }) | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user