mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
permit plugin theme to change other monaco options
This commit is contained in:
parent
8a1d81989b
commit
08049252f2
@ -247,8 +247,7 @@ module.exports = {
|
||||
theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || [])
|
||||
}
|
||||
if(theme.codeEditor) {
|
||||
theme.codeEditor.options = theme.codeEditor.options || {};
|
||||
theme.codeEditor.options.theme = themePlugin.monacoTheme;
|
||||
theme.codeEditor.options = Object.assign({}, theme.codeEditor.options, themePlugin.monacoOptions);
|
||||
}
|
||||
}
|
||||
activeThemeInitialised = true;
|
||||
|
Loading…
Reference in New Issue
Block a user