Vanessa 2026-03-08 16:06:25 +08:00
parent f458d70f84
commit e1c9c4b1d5
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@ import {
hasClosestByTag,
isInEmbedBlock
} from "../util/hasClosest";
import {hideElements} from "./hideElements";
export const initUI = (protyle: IProtyle) => {
protyle.contentElement = document.createElement("div");
@ -121,6 +122,7 @@ export const initUI = (protyle: IProtyle) => {
}, Constants.TIMEOUT_LOAD);
}, {passive: true});
protyle.contentElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
hideElements(["hint", "util"], protyle);
// wysiwyg 元素下方点击无效果 https://github.com/siyuan-note/siyuan/issues/12009
if (protyle.disabled ||
// 选中块时,禁止添加空块 https://github.com/siyuan-note/siyuan/issues/13905

View file

@ -2616,7 +2616,6 @@ export class WYSIWYG {
event
});
});
hideElements(["hint", "util"], protyle);
const ctrlIsPressed = isOnlyMeta(event);
const backlinkBreadcrumbItemElement = hasClosestByClassName(event.target, "protyle-breadcrumb__item");
if (backlinkBreadcrumbItemElement) {