mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
3966d0b9d0
commit
91349bd2e8
1 changed files with 6 additions and 3 deletions
|
|
@ -1490,9 +1490,12 @@ export class WYSIWYG {
|
|||
const breadcrumbId = backlinkBreadcrumbItemElement.getAttribute("data-id");
|
||||
if (breadcrumbId) {
|
||||
if (ctrlIsPressed) {
|
||||
openFileById({
|
||||
id: breadcrumbId,
|
||||
action: breadcrumbId === protyle.block.rootID ? [Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL]
|
||||
fetchPost("/api/block/checkBlockFold", {id: breadcrumbId}, (foldResponse) => {
|
||||
openFileById({
|
||||
id: breadcrumbId,
|
||||
action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
|
||||
zoomIn: foldResponse.data
|
||||
});
|
||||
});
|
||||
} else {
|
||||
loadBreadcrumb(protyle, backlinkBreadcrumbItemElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue