Skip to content

Commit

Permalink
fix(editor): Pass onCreate callback to editor API
Browse files Browse the repository at this point in the history
Makes sure that reader content is updated with editor content on initial
load.

Depends on nextcloud/text#6274.

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Aug 28, 2024
1 parent cc8df1f commit 4448855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mixins/editorMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ export default {
readOnly: false,
shareToken: this.shareTokenParam || null,
autofocus: false,
onCreate: ({ markdown }) => {
this.updateEditorContentDebounced(markdown)
},
onLoaded: () => {
this.done('editor')
},
Expand Down

0 comments on commit 4448855

Please sign in to comment.