diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js index 918fed420..69c9345a0 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js @@ -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;