Skip to content

Commit 735f393

Browse files
authored
Merge pull request #9147 from nextcloud/backport/9140/stable34
[stable34] fix(attachments): emit event when creating an attachment
2 parents 901299e + 17a3765 commit 735f393

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Editor/MediaHandler.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export default {
213213
return createAttachment(this.connection, template)
214214
.then((response) => {
215215
this.insertAttachmentPreview(response.data?.id)
216+
emit('text:image-node:add', null)
216217
})
217218
.catch((error) => {
218219
logger.error('Failed to create attachment', { error })

0 commit comments

Comments
 (0)