diff --git a/packages/editor-ui/package.json b/packages/editor-ui/package.json index 2f381b5740..69eb7c1521 100644 --- a/packages/editor-ui/package.json +++ b/packages/editor-ui/package.json @@ -27,6 +27,7 @@ "dependencies": { "@fontsource/open-sans": "^4.5.0", "n8n-design-system": "~0.5.0", + "monaco-editor": "^0.29.1", "timeago.js": "^4.0.2", "v-click-outside": "^3.1.2", "vue-fragment": "^1.5.2" @@ -72,11 +73,12 @@ "lodash.get": "^4.4.2", "lodash.set": "^4.3.2", "n8n-workflow": "~0.73.0", - "sass": "^1.26.5", + "monaco-editor-webpack-plugin": "^5.0.0", "normalize-wheel": "^1.0.1", "prismjs": "^1.17.1", "quill": "^2.0.0-dev.3", "quill-autoformat": "^0.1.1", + "sass": "^1.26.5", "sass-loader": "^8.0.2", "string-template-parser": "^1.2.6", "ts-jest": "^26.3.0", diff --git a/packages/editor-ui/src/components/CodeEdit.vue b/packages/editor-ui/src/components/CodeEdit.vue index fb1c02521d..85c7cc1c25 100644 --- a/packages/editor-ui/src/components/CodeEdit.vue +++ b/packages/editor-ui/src/components/CodeEdit.vue @@ -1,61 +1,107 @@ diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index 5ea58f5f4c..30008448ad 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -13,7 +13,7 @@ />
- +
@@ -597,7 +597,7 @@ export default mixins( parameter_field_type: this.parameter.type, new_expression: !this.isValueExpression, workflow_id: this.$store.getters.workflowId, - }); + }); } }, closeTextEditDialog () { diff --git a/packages/editor-ui/vue.config.js b/packages/editor-ui/vue.config.js index d1233395fe..ef36eb00bc 100644 --- a/packages/editor-ui/vue.config.js +++ b/packages/editor-ui/vue.config.js @@ -1,3 +1,5 @@ +const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin'); + module.exports = { chainWebpack: config => config.resolve.symlinks(false), // transpileDependencies: [ @@ -13,6 +15,9 @@ module.exports = { devServer: { disableHostCheck: true, }, + plugins: [ + new MonacoWebpackPlugin(), + ], }, css: { loaderOptions: {