This commit is contained in:
kalyanmantha-ui 2026-03-11 21:17:08 +03:00 committed by GitHub
commit bef374caef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,14 +92,18 @@ export default class DragNDrop extends Module {
const targetBlock = BlockManager.setCurrentBlockByChildNode(dropEvent.target as Node);
if (targetBlock) {
this.Editor.Caret.setToBlock(targetBlock, Caret.positions.END);
// this.Editor.Caret.setToBlock(targetBlock, Caret.positions.END);
} else {
const lastBlock = BlockManager.setCurrentBlockByChildNode(BlockManager.lastBlock.holder);
// const lastBlock = BlockManager.setCurrentBlockByChildNode(BlockManager.lastBlock.holder);
this.Editor.Caret.setToBlock(lastBlock, Caret.positions.END);
// this.Editor.Caret.setToBlock(lastBlock, Caret.positions.END);
}
await Paste.processDataTransfer(dropEvent.dataTransfer, true);
_.delay(() => {
this.Editor.BlockSelection.clearSelection();
}, 50)();
}
/**