mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 17:32:31 +02:00
Fix unwanted text duplication with sortableJS
This commit is contained in:
parent
b619946e8f
commit
0d1d53abf4
|
@ -99,7 +99,9 @@ export default class DragNDrop extends Module {
|
|||
this.Editor.Caret.setToBlock(lastBlock, Caret.positions.END);
|
||||
}
|
||||
|
||||
await Paste.processDataTransfer(dropEvent.dataTransfer, true);
|
||||
if (dropEvent.target.isContentEditable) {
|
||||
await Paste.processDataTransfer(dropEvent.dataTransfer, true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue