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;
|
return;
|
||||||
}
|
}
|
||||||
|
const documentSelf = document;
|
||||||
|
documentSelf.onmouseup = null;
|
||||||
let target = event.target as HTMLElement;
|
let target = event.target as HTMLElement;
|
||||||
let nodeElement = hasClosestBlock(target) as HTMLElement;
|
let nodeElement = hasClosestBlock(target) as HTMLElement;
|
||||||
const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");
|
const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");
|
||||||
|
@ -582,7 +584,6 @@ export class WYSIWYG {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {
|
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {
|
||||||
let ctrlElement = nodeElement;
|
let ctrlElement = nodeElement;
|
||||||
if (!hasSelectClassElement && galleryItemElement) {
|
if (!hasSelectClassElement && galleryItemElement) {
|
||||||
|
@ -619,7 +620,7 @@ export class WYSIWYG {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const documentSelf = document;
|
|
||||||
// https://github.com/siyuan-note/siyuan/issues/15100
|
// https://github.com/siyuan-note/siyuan/issues/15100
|
||||||
if (galleryItemElement) {
|
if (galleryItemElement) {
|
||||||
documentSelf.onmouseup = () => {
|
documentSelf.onmouseup = () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue