Skip to content

Commit

Permalink
🚚 (#2345): rename EditorDraggable -> EditorMidiaHandler
Browse files Browse the repository at this point in the history
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
  • Loading branch information
Vinicius Reis committed May 26, 2022
1 parent 1d699f5 commit f5429f8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -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',
Expand All @@ -69,7 +69,7 @@ const IMAGE_MIMES = [
]

export default {
name: 'EditorDraggable',
name: 'EditorMidiaHandler',
mixins: [useEditorMixin, useFileMixin, useSyncServiceMixin],
provide() {
const val = {}
Expand Down
8 changes: 4 additions & 4 deletions src/components/EditorWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" />
Expand Down Expand Up @@ -118,15 +118,15 @@ 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

export default {
name: 'EditorWrapper',
components: {
EditorContent,
EditorDraggable,
EditorMidiaHandler,
MenuBar,
MenuBubble: () => import(/* webpackChunkName: "editor-rich" */'./MenuBubble.vue'),
ReadOnlyEditor: () => import(/* webpackChunkName: "editor" */'./ReadOnlyEditor.vue'),
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/ActionImageUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import {
useActionImagePromptMixin,
useUploadingStateMixin,
useActionChooseLocalImageMixin,
} from '../EditorDraggable.provider.js'
} from '../EditorMidiaHandler.provider.js'

export default {
name: 'ActionImageUpload',
Expand Down

0 comments on commit f5429f8

Please sign in to comment.