Do not emit events when setting editor content

Fixes spaces being eater

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-04-30 08:39:12 +02:00
parent 63fdfc7190
commit 557d599adf
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -419,7 +419,7 @@ export default class EditorComponent extends Vue {
onValueChanged(val: string): void {
if (!this.editor) return;
if (val !== this.editor.getHTML()) {
this.editor.setContent(val);
this.editor.setContent(val, false);
}
}