Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2022-08-23 14:04:13 +0300
committerJulien Veyssier <eneiluj@posteo.net>2022-09-06 15:44:53 +0300
commit22f70c954111109c5dd76d76dcefa8632d9eaa66 (patch)
tree96fd5fb31b1a44d07d74c673ef1b2d63103e4763 /src/components/Editor.provider.js
parentf5a34ceef75ce5e234bc8275b84ada6ca22c563e (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.provider.js')
-rw-r--r--src/components/Editor.provider.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Editor.provider.js b/src/components/Editor.provider.js
index b791075c5..132e1fd9d 100644
--- a/src/components/Editor.provider.js
+++ b/src/components/Editor.provider.js
@@ -22,7 +22,7 @@
export const EDITOR = Symbol('tiptap:editor')
export const FILE = Symbol('editor:file')
-export const IMAGE_RESOLVER = Symbol('image:resolver')
+export const ATTACHMENT_RESOLVER = Symbol('attachment:resolver')
export const IS_MOBILE = Symbol('editor:is-mobile')
export const IS_PUBLIC = Symbol('editor:is-public')
export const IS_RICH_EDITOR = Symbol('editor:is-rich-editor')
@@ -78,10 +78,10 @@ export const useFileMixin = {
},
}
-export const useImageResolver = {
+export const useAttachmentResolver = {
inject: {
- $imageResolver: {
- from: IMAGE_RESOLVER,
+ $attachmentResolver: {
+ from: ATTACHMENT_RESOLVER,
default: {
resolve(src) {
console.warn('No image resolver provided. Some image sources cannot be resolved.')