mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 21:38:48 +01:00
This commit is contained in:
parent
6d702330c0
commit
d86698663a
1 changed files with 5 additions and 1 deletions
|
|
@ -176,6 +176,10 @@ export const initUI = (protyle: IProtyle) => {
|
|||
// attr
|
||||
const attrElement = hasClosestByClassName(event.target, "protyle-attr");
|
||||
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;
|
||||
attrElement.parentElement.classList.add("protyle-wysiwyg--hl");
|
||||
return;
|
||||
|
|
@ -236,7 +240,7 @@ export const initUI = (protyle: IProtyle) => {
|
|||
}
|
||||
|
||||
// 面包屑
|
||||
/// if !MOBILE
|
||||
/// #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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue