mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:40:48 +08:00
This commit is contained in:
parent
6d702330c0
commit
d86698663a
@ -176,6 +176,10 @@ export const initUI = (protyle: IProtyle) => {
|
|||||||
// attr
|
// attr
|
||||||
const attrElement = hasClosestByClassName(event.target, "protyle-attr");
|
const attrElement = hasClosestByClassName(event.target, "protyle-attr");
|
||||||
if (attrElement && !attrElement.parentElement.classList.contains("protyle-title")) {
|
if (attrElement && !attrElement.parentElement.classList.contains("protyle-title")) {
|
||||||
|
const hlElement = protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--hl");
|
||||||
|
if (hlElement) {
|
||||||
|
hlElement.classList.remove("protyle-wysiwyg--hl");
|
||||||
|
}
|
||||||
overAttr = true;
|
overAttr = true;
|
||||||
attrElement.parentElement.classList.add("protyle-wysiwyg--hl");
|
attrElement.parentElement.classList.add("protyle-wysiwyg--hl");
|
||||||
return;
|
return;
|
||||||
@ -236,7 +240,7 @@ export const initUI = (protyle: IProtyle) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 面包屑
|
// 面包屑
|
||||||
/// if !MOBILE
|
/// #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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user