Fix unwanted text duplication with sortableJS

This commit is contained in:
Raphaël Riehl 2024-02-06 16:05:15 +01:00 committed by GitHub
parent b619946e8f
commit 0d1d53abf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}
/**