Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <jonas@freesources.org>2022-11-01 19:49:31 +0300
committerJonas <jonas@freesources.org>2022-11-01 19:52:51 +0300
commite2f4143ee663a7dfda45e519a0d87afea640fa87 (patch)
tree382fe0cc43f61d64342f4a4502dfd63ca8677a1a
parentd6fa0694906b109de239be5ab3e9436653fdf04e (diff)
Emit update when setting new editor content in BaseReader
This is required for updateContent event listeners to run, e.g. to update heading attributes. Related: #2919 Signed-off-by: Jonas <jonas@freesources.org>
-rw-r--r--src/components/BaseReader.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/BaseReader.vue b/src/components/BaseReader.vue
index 6b0e81a74..faacea193 100644
--- a/src/components/BaseReader.vue
+++ b/src/components/BaseReader.vue
@@ -71,7 +71,7 @@ export default {
},
updateContent() {
- this.$editor.commands.setContent(this.htmlContent)
+ this.$editor.commands.setContent(this.htmlContent, true)
},
},
}