From 44488558dc29f88ccf15a293a06a1f025119e289 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 28 Aug 2024 15:37:58 +0200 Subject: [PATCH] fix(editor): Pass onCreate callback to editor API Makes sure that reader content is updated with editor content on initial load. Depends on https://github.com/nextcloud/text/pull/6274. Signed-off-by: Jonas --- src/mixins/editorMixin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mixins/editorMixin.js b/src/mixins/editorMixin.js index 78426bd4e..80b3f27e4 100644 --- a/src/mixins/editorMixin.js +++ b/src/mixins/editorMixin.js @@ -151,6 +151,9 @@ export default { readOnly: false, shareToken: this.shareTokenParam || null, autofocus: false, + onCreate: ({ markdown }) => { + this.updateEditorContentDebounced(markdown) + }, onLoaded: () => { this.done('editor') },