mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
This commit is contained in:
parent
cbcb047f0f
commit
bec233f58b
1 changed files with 3 additions and 2 deletions
|
@ -445,6 +445,8 @@ export class WYSIWYG {
|
|||
// 右键
|
||||
return;
|
||||
}
|
||||
const documentSelf = document;
|
||||
documentSelf.onmouseup = null;
|
||||
let target = event.target as HTMLElement;
|
||||
let nodeElement = hasClosestBlock(target) as HTMLElement;
|
||||
const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");
|
||||
|
@ -582,7 +584,6 @@ export class WYSIWYG {
|
|||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {
|
||||
let ctrlElement = nodeElement;
|
||||
if (!hasSelectClassElement && galleryItemElement) {
|
||||
|
@ -619,7 +620,7 @@ export class WYSIWYG {
|
|||
}
|
||||
return;
|
||||
}
|
||||
const documentSelf = document;
|
||||
|
||||
// https://github.com/siyuan-note/siyuan/issues/15100
|
||||
if (galleryItemElement) {
|
||||
documentSelf.onmouseup = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue