diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-05-26 16:49:15 +0300 |
---|---|---|
committer | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-05-26 16:49:15 +0300 |
commit | f5429f8cc9c08e148b0c93b6765a9d285239b73f (patch) | |
tree | a199202310e372063538bb16233fa3de2e7dad34 /src | |
parent | 1d699f508dca112ff709c03a4649efe76a3d0da3 (diff) |
🚚 (#2345): rename EditorDraggable -> EditorMidiaHandler
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/EditorMidiaHandler.provider.js (renamed from src/components/EditorDraggable.provider.js) | 0 | ||||
-rw-r--r-- | src/components/EditorMidiaHandler.vue (renamed from src/components/EditorDraggable.vue) | 8 | ||||
-rw-r--r-- | src/components/EditorWrapper.vue | 8 | ||||
-rw-r--r-- | src/components/Menu/ActionImageUpload.vue | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/components/EditorDraggable.provider.js b/src/components/EditorMidiaHandler.provider.js index 8fd955e56..8fd955e56 100644 --- a/src/components/EditorDraggable.provider.js +++ b/src/components/EditorMidiaHandler.provider.js diff --git a/src/components/EditorDraggable.vue b/src/components/EditorMidiaHandler.vue index aee9d62ff..febaefd7a 100644 --- a/src/components/EditorDraggable.vue +++ b/src/components/EditorMidiaHandler.vue @@ -21,8 +21,8 @@ --> <template> - <div class="editor editor-draggable" - data-text-el="editor-draggable" + <div class="editor editor-midia-handler" + data-text-el="editor-midia-handler" :class="{ draggedOver }" @image-paste="onPaste" @dragover.prevent.stop="setDraggedOver(true)" @@ -54,7 +54,7 @@ import { ACTION_IMAGE_PROMPT, ACTION_CHOOSE_LOCAL_IMAGE, STATE_UPLOADING, -} from './EditorDraggable.provider.js' +} from './EditorMidiaHandler.provider.js' const IMAGE_MIMES = [ 'image/png', @@ -69,7 +69,7 @@ const IMAGE_MIMES = [ ] export default { - name: 'EditorDraggable', + name: 'EditorMidiaHandler', mixins: [useEditorMixin, useFileMixin, useSyncServiceMixin], provide() { const val = {} diff --git a/src/components/EditorWrapper.vue b/src/components/EditorWrapper.vue index ad4524120..b764e283c 100644 --- a/src/components/EditorWrapper.vue +++ b/src/components/EditorWrapper.vue @@ -46,7 +46,7 @@ 'is-rich-editor': isRichEditor, 'show-color-annotations': showAuthorAnnotations }"> - <EditorDraggable v-if="$editor" + <EditorMidiaHandler v-if="$editor" id="editor" class="text-editor__main"> <MenuBar v-if="renderMenus" @@ -74,7 +74,7 @@ class="editor__content text-editor__content" :editor="$editor" /> </div> - </EditorDraggable> + </EditorMidiaHandler> <ReadOnlyEditor v-if="hasSyncCollission" :content="syncError.data.outsideChange" :is-rich-editor="isRichEditor" /> @@ -118,7 +118,7 @@ import isMobile from './../mixins/isMobile.js' import store from './../mixins/store.js' import Lock from 'vue-material-design-icons/Lock' import MenuBar from './Menu/MenuBar.vue' -import EditorDraggable from './EditorDraggable.vue' +import EditorMidiaHandler from './EditorMidiaHandler.vue' const EDITOR_PUSH_DEBOUNCE = 200 @@ -126,7 +126,7 @@ export default { name: 'EditorWrapper', components: { EditorContent, - EditorDraggable, + EditorMidiaHandler, MenuBar, MenuBubble: () => import(/* webpackChunkName: "editor-rich" */'./MenuBubble.vue'), ReadOnlyEditor: () => import(/* webpackChunkName: "editor" */'./ReadOnlyEditor.vue'), diff --git a/src/components/Menu/ActionImageUpload.vue b/src/components/Menu/ActionImageUpload.vue index cfbdac5a2..30e9f9680 100644 --- a/src/components/Menu/ActionImageUpload.vue +++ b/src/components/Menu/ActionImageUpload.vue @@ -64,7 +64,7 @@ import { useActionImagePromptMixin, useUploadingStateMixin, useActionChooseLocalImageMixin, -} from '../EditorDraggable.provider.js' +} from '../EditorMidiaHandler.provider.js' export default { name: 'ActionImageUpload', |