mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
a252068365
commit
fc85a72a1b
2 changed files with 7 additions and 2 deletions
|
|
@ -575,8 +575,8 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
document.onmouseup = null;
|
||||
});
|
||||
editorElement.addEventListener("drop", async (event: DragEvent & { target: HTMLElement }) => {
|
||||
if (event.dataTransfer.getData(Constants.SIYUAN_DROP_EDITOR)) {
|
||||
// 编辑器内选中文字拖拽
|
||||
if (protyle.disabled || event.dataTransfer.getData(Constants.SIYUAN_DROP_EDITOR)) {
|
||||
// 只读模式/编辑器内选中文字拖拽
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue