mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 09:09:50 +08:00
This commit is contained in:
parent
1926dfb4e7
commit
6e8c42e521
@ -171,7 +171,7 @@ ${padHTML}
|
||||
target = target.parentElement;
|
||||
}
|
||||
});
|
||||
/// if !MOBILE
|
||||
/// #if !MOBILE
|
||||
element.addEventListener("mouseleave", () => {
|
||||
protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--hl").forEach(item => {
|
||||
item.classList.remove("protyle-wysiwyg--hl");
|
||||
|
@ -14,6 +14,7 @@ import {transaction} from "../wysiwyg/transaction";
|
||||
import {focusByRange} from "../util/selection";
|
||||
/// #if !MOBILE
|
||||
import {moveResize} from "../../dialog/moveResize";
|
||||
/// #endif
|
||||
import {
|
||||
hasClosestBlock,
|
||||
hasClosestByAttribute,
|
||||
@ -21,7 +22,6 @@ import {
|
||||
hasClosestByTag,
|
||||
isInEmbedBlock
|
||||
} from "../util/hasClosest";
|
||||
/// #endif
|
||||
|
||||
export const initUI = (protyle: IProtyle) => {
|
||||
protyle.contentElement = document.createElement("div");
|
||||
@ -171,7 +171,6 @@ export const initUI = (protyle: IProtyle) => {
|
||||
}
|
||||
}
|
||||
});
|
||||
/// if !MOBILE
|
||||
let overAttr = false;
|
||||
protyle.element.addEventListener("mouseover", (event: KeyboardEvent & { target: HTMLElement }) => {
|
||||
// attr
|
||||
@ -237,6 +236,7 @@ export const initUI = (protyle: IProtyle) => {
|
||||
}
|
||||
|
||||
// 面包屑
|
||||
/// if !MOBILE
|
||||
if (protyle.selectElement.classList.contains("fn__none")) {
|
||||
const svgElement = hasClosestByAttribute(event.target, "data-node-id", null);
|
||||
if (svgElement && svgElement.parentElement.classList.contains("protyle-breadcrumb__bar")) {
|
||||
@ -249,8 +249,8 @@ export const initUI = (protyle: IProtyle) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
/// #endif
|
||||
});
|
||||
/// endif
|
||||
};
|
||||
|
||||
export const addLoading = (protyle: IProtyle, msg?: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user