diff --git a/packages/editor-ui/src/components/ExpressionInput.vue b/packages/editor-ui/src/components/ExpressionInput.vue
index 13c914ed17..a42ff6613b 100644
--- a/packages/editor-ui/src/components/ExpressionInput.vue
+++ b/packages/editor-ui/src/components/ExpressionInput.vue
@@ -12,23 +12,22 @@ import 'quill/dist/quill.core.css';
import Quill, { DeltaOperation } from 'quill';
// @ts-ignore
-import AutoFormat, { AutoformatHelperAttribute } from 'quill-autoformat';
+import AutoFormat from 'quill-autoformat';
import {
NodeParameterValue,
Workflow,
- WorkflowDataProxy,
} from 'n8n-workflow';
import {
- IExecutionResponse,
IVariableItemSelected,
- IVariableSelectorOption,
} from '@/Interface';
+import { genericHelpers } from '@/components/mixins/genericHelpers';
import { workflowHelpers } from '@/components/mixins/workflowHelpers';
import mixins from 'vue-typed-mixins';
export default mixins(
+ genericHelpers,
workflowHelpers,
)
.extend({
@@ -119,7 +118,7 @@ export default mixins(
};
this.editor = new Quill(this.$refs['expression-editor'] as Element, {
- readOnly: !!this.resolvedValue,
+ readOnly: !!this.resolvedValue || this.isReadOnly,
modules: {
autoformat: {},
keyboard: {
diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue
index 5f77346c3f..225859590f 100644
--- a/packages/editor-ui/src/components/ParameterInput.vue
+++ b/packages/editor-ui/src/components/ParameterInput.vue
@@ -10,7 +10,7 @@
-
+
@@ -523,9 +523,6 @@ export default mixins(
this.valueChanged(value);
},
setFocus () {
- if (this.isReadOnly === true) {
- return;
- }
if (this.isValueExpression) {
this.expressionEditDialogVisible = true;
return;