mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 20:30:15 +01:00
This commit is contained in:
parent
142abbe8e1
commit
d7321cccec
2 changed files with 10 additions and 3 deletions
|
|
@ -1407,8 +1407,13 @@ export class WYSIWYG {
|
|||
hideElements(["hint", "util"], protyle);
|
||||
const backlinkBreadcrumbItemElement = hasClosestByClassName(event.target, "protyle-breadcrumb__item");
|
||||
if (backlinkBreadcrumbItemElement) {
|
||||
if (backlinkBreadcrumbItemElement.getAttribute("data-id")) {
|
||||
loadBreadcrumb(protyle, backlinkBreadcrumbItemElement);
|
||||
const breadcrumbId = backlinkBreadcrumbItemElement.getAttribute("data-id")
|
||||
if (breadcrumbId) {
|
||||
if (window.siyuan.ctrlIsPressed) {
|
||||
openFileById({id: breadcrumbId, action: [Constants.CB_GET_FOCUS]});
|
||||
} else {
|
||||
loadBreadcrumb(protyle, backlinkBreadcrumbItemElement);
|
||||
}
|
||||
} else {
|
||||
// 引用标题时的更多加载
|
||||
getBacklinkHeadingMore(backlinkBreadcrumbItemElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue