mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
🚨
This commit is contained in:
parent
0e23e2c04b
commit
574a98f5d0
10 changed files with 25 additions and 32 deletions
|
|
@ -5,7 +5,6 @@ import {uploadFiles} from "../upload";
|
|||
import {fetchPost} from "../../util/fetch";
|
||||
import {getRandomEmoji, openEmojiPanel, unicode2Emoji, updateFileTreeEmoji, updateOutlineEmoji} from "../../emoji";
|
||||
import {upDownHint} from "../../util/upDownHint";
|
||||
import {setPosition} from "../../util/setPosition";
|
||||
/// #if !MOBILE
|
||||
import {openGlobalSearch} from "../../search/util";
|
||||
/// #endif
|
||||
|
|
@ -423,7 +422,7 @@ export class Background {
|
|||
this.addTags(listItemElement.textContent);
|
||||
});
|
||||
const rect = this.iconElement.nextElementSibling.getBoundingClientRect();
|
||||
window.siyuan.menus.menu.popup({x: rect.left, y: rect.top + rect.height})
|
||||
window.siyuan.menus.menu.popup({x: rect.left, y: rect.top + rect.height});
|
||||
inputElement.focus();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import {openBacklink, openGraph, openOutline} from "../../layout/dock/util";
|
|||
import {setTitle} from "../../dialog/processSystem";
|
||||
import {getNoContainerElement} from "../wysiwyg/getBlock";
|
||||
import {commonHotkey} from "../wysiwyg/commonHotkey";
|
||||
import {setPosition} from "../../util/setPosition";
|
||||
import {code160to32} from "../util/code160to32";
|
||||
import {deleteFile} from "../../editor/deleteFile";
|
||||
|
||||
|
|
@ -192,7 +191,7 @@ export class Title {
|
|||
focusByRange(range);
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY})
|
||||
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY});
|
||||
});
|
||||
this.element.querySelector(".protyle-attr").addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
|
||||
fetchPost("/api/block/getDocInfo", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue