Skip to content

Commit

Permalink
IBX-6352: Blocked image upload when moving it inside RTE (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 authored Aug 25, 2023
1 parent 88f4447 commit 79b372a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class IbexaUploadImageEditing extends Plugin {

addListeners() {
this.listenTo(this.editor.editing.view.document, 'drop', (event, data) => {
if (data.dataTransfer.effectAllowed === 'copyMove') {
return;
}

const { files } = data.dataTransfer;

if (!files.length) {
Expand Down

0 comments on commit 79b372a

Please sign in to comment.