mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a8bfc6b8c7
@ -235,7 +235,7 @@ const hidePopover = (event: MouseEvent & { path: HTMLElement[] }) => {
|
|||||||
// 有 gutter 菜单时不隐藏
|
// 有 gutter 菜单时不隐藏
|
||||||
} else if (item.targetElement && item.targetElement.classList.contains("protyle-wysiwyg__embed") &&
|
} else if (item.targetElement && item.targetElement.classList.contains("protyle-wysiwyg__embed") &&
|
||||||
item.targetElement.contains(targetElement)) {
|
item.targetElement.contains(targetElement)) {
|
||||||
// 点击潜入块后浮窗消失后再快速点击潜入块无法弹出浮窗 https://github.com/siyuan-note/siyuan/issues/12511
|
// 点击嵌入块后浮窗消失后再快速点击嵌入块无法弹出浮窗 https://github.com/siyuan-note/siyuan/issues/12511
|
||||||
} else {
|
} else {
|
||||||
item.destroy();
|
item.destroy();
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ export const setRefDynamicText = (data: {
|
|||||||
"rootID": string
|
"rootID": string
|
||||||
}) => {
|
}) => {
|
||||||
getAllEditor().forEach(item => {
|
getAllEditor().forEach(item => {
|
||||||
// 不能对比 rootId,否则潜入块中的锚文本无法更新
|
// 不能对比 rootId,否则嵌入块中的锚文本无法更新
|
||||||
item.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.blockID}"] span[data-type="block-ref"][data-subtype="d"][data-id="${data.defBlockID}"]`).forEach(item => {
|
item.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.blockID}"] span[data-type="block-ref"][data-subtype="d"][data-id="${data.defBlockID}"]`).forEach(item => {
|
||||||
item.innerHTML = data.refText;
|
item.innerHTML = data.refText;
|
||||||
});
|
});
|
||||||
@ -184,7 +184,7 @@ export const setDefRefCount = (data: {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 不能对比 rootId,否则潜入块中的锚文本无法更新
|
// 不能对比 rootId,否则嵌入块中的锚文本无法更新
|
||||||
item.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.blockID}"]`).forEach(item => {
|
item.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.blockID}"]`).forEach(item => {
|
||||||
const countElement = item.querySelector(".protyle-attr--refcount");
|
const countElement = item.querySelector(".protyle-attr--refcount");
|
||||||
if (countElement) {
|
if (countElement) {
|
||||||
|
Loading…
Reference in New Issue
Block a user