Vanessa 2024-03-20 21:50:03 +08:00
parent adb8f65c10
commit 2d52dbfd1c
8 changed files with 4 additions and 70 deletions

View file

@ -17,7 +17,7 @@ export const initBlockPopover = (app: App) => {
let timeoutHide: number;
// 编辑器内容块引用/backlinks/tag/bookmark/套娃中使用
document.addEventListener("mouseover", (event: MouseEvent & { target: HTMLElement, path: HTMLElement[] }) => {
if (!window.siyuan.config) {
if (!window.siyuan.config || !window.siyuan.menus) {
return;
}
const aElement = hasClosestByAttribute(event.target, "data-type", "a", true) ||