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