Skip to content

Commit

Permalink
fix(editorApi): expose save function
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- authored and backportbot-nextcloud[bot] committed Oct 10, 2023
1 parent 86c2828 commit e305b2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,10 @@ export default {
this.emit('delete-image-node', imageUrl)
},

async save() {
await this.$syncService.save()
},

async close() {
if (this.currentSession && this.$syncService) {
try {
Expand Down
4 changes: 4 additions & 0 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ class TextEditorEmbed {
return this
}

async save() {
return this.#vm.$children[0].save?.()
}

setShowOutline(value) {
this.#vm.$set(this.#data, 'showOutlineOutside', value)
return this
Expand Down

0 comments on commit e305b2e

Please sign in to comment.