mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
add codeEditor settings
This commit is contained in:
@@ -33,7 +33,7 @@ var defaultContext = {
|
||||
asset: {
|
||||
red: (process.env.NODE_ENV == "development")? "red/red.js":"red/red.min.js",
|
||||
main: (process.env.NODE_ENV == "development")? "red/main.js":"red/main.min.js",
|
||||
|
||||
vendorMonaco: ""
|
||||
}
|
||||
};
|
||||
|
||||
@@ -93,6 +93,7 @@ module.exports = {
|
||||
themeContext = clone(defaultContext);
|
||||
themeSettings = null;
|
||||
theme = settings.editorTheme || {};
|
||||
themeContext.asset.vendorMonaco = ((theme.codeEditor || {}).lib === "monaco") ? "vendor/monaco/monaco-bootstrap.js" : "";
|
||||
activeTheme = theme.theme;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user