mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
This commit is contained in:
parent
f458d70f84
commit
e1c9c4b1d5
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue