diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-08-23 14:04:13 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-09-06 15:44:53 +0300 |
commit | 22f70c954111109c5dd76d76dcefa8632d9eaa66 (patch) | |
tree | 96fd5fb31b1a44d07d74c673ef1b2d63103e4763 /src/components/Editor.vue | |
parent | f5a34ceef75ce5e234bc8275b84ada6ca22c563e (diff) |
rename most frontend image stuff to attachment (except the Tiptap node)
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'src/components/Editor.vue')
-rw-r--r-- | src/components/Editor.vue | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 4148f125f..5a881c26e 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -77,7 +77,7 @@ import { loadState } from '@nextcloud/initial-state' import { EDITOR, FILE, - IMAGE_RESOLVER, + ATTACHMENT_RESOLVER, IS_MOBILE, IS_PUBLIC, IS_RICH_EDITOR, @@ -86,7 +86,7 @@ import { } from './Editor.provider.js' import { SyncService, ERROR_TYPE, IDLE_TIMEOUT } from './../services/SyncService.js' -import ImageResolver from './../services/ImageResolver.js' +import AttachmentResolver from './../services/AttachmentResolver.js' import { extensionHighlight } from '../helpers/mappings.js' import { createEditor, serializePlainText, loadSyntaxHighlight } from './../EditorFactory.js' import { createMarkdownSerializer } from './../extensions/Markdown.js' @@ -139,8 +139,8 @@ export default { [FILE]: { get: () => this.fileData, }, - [IMAGE_RESOLVER]: { - get: () => this.$imageResolver, + [ATTACHMENT_RESOLVER]: { + get: () => this.$attachmentResolver, }, [IS_PUBLIC]: { get: () => this.isPublic, @@ -291,7 +291,7 @@ export default { created() { this.$editor = null this.$syncService = null - this.$imageResolver = null + this.$attachmentResolver = null this.saveStatusPolling = setInterval(() => { this.updateLastSavedStatus() }, 2000) @@ -449,7 +449,7 @@ export default { this.lock = this.$syncService.lock localStorage.setItem('nick', this.currentSession.guestName) this.$store.dispatch('setCurrentSession', this.currentSession) - this.$imageResolver = new ImageResolver({ + this.$attachmentResolver = new AttachmentResolver({ session: this.currentSession, user: getCurrentUser(), shareToken: this.shareToken, |