mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(editor): Fix value syncing in SQL and HTML editor (#6848)
This commit is contained in:
parent
a5667e6c42
commit
90e825f743
|
@ -111,7 +111,8 @@ export default defineComponent({
|
|||
this.getHighlighter()?.removeColor(this.editor, this.htmlSegments);
|
||||
this.getHighlighter()?.addColor(this.editor, this.resolvableSegments);
|
||||
|
||||
this.$emit('update:modelValue', this.doc);
|
||||
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
||||
this.$emit('update:modelValue', this.editor?.state.doc.toString());
|
||||
}),
|
||||
];
|
||||
},
|
||||
|
|
|
@ -174,7 +174,7 @@ export default defineComponent({
|
|||
highlighter.removeColor(this.editor as EditorView, this.plaintextSegments);
|
||||
highlighter.addColor(this.editor as EditorView, this.resolvableSegments);
|
||||
|
||||
this.$emit('update:modelValue', this.doc);
|
||||
this.$emit('update:modelValue', this.editor?.state.doc.toString());
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue