mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
This commit is contained in:
parent
e17a9d1ee4
commit
891867b0f2
3 changed files with 4 additions and 5 deletions
|
|
@ -12,7 +12,6 @@ import {hideElements} from "../protyle/ui/hideElements";
|
|||
import {pushBack} from "./util/MobileBackFoward";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||
import {App} from "../index";
|
||||
|
||||
export const getCurrentEditor = () => {
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ export class Breadcrumb {
|
|||
if (!blockElement) {
|
||||
blockElement = getNoContainerElement(protyle.wysiwyg.element.firstElementChild) || protyle.wysiwyg.element.firstElementChild;
|
||||
}
|
||||
const id = blockElement.getAttribute("data-node-id")
|
||||
const id = blockElement.getAttribute("data-node-id");
|
||||
fetchPost("/api/block/getBlockBreadcrumb", {id, excludeTypes: []}, (response) => {
|
||||
response.data.forEach((item: IBreadcrumb) => {
|
||||
let isCurrent = false;
|
||||
|
|
@ -214,7 +214,7 @@ export class Breadcrumb {
|
|||
click() {
|
||||
zoomOut({protyle, id: item.id, focusId: id});
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
menu.fullscreen();
|
||||
});
|
||||
|
|
@ -242,7 +242,7 @@ export class Breadcrumb {
|
|||
}
|
||||
fetchPost("/api/block/getTreeStat", {id: id || (protyle.block.showAll ? protyle.block.id : protyle.block.rootID)}, (response) => {
|
||||
window.siyuan.menus.menu.remove();
|
||||
window.siyuan.menus.menu.element.setAttribute("data-name", "breadcrumbMore")
|
||||
window.siyuan.menus.menu.element.setAttribute("data-name", "breadcrumbMore");
|
||||
if (!protyle.contentElement.classList.contains("fn__none") && !protyle.disabled) {
|
||||
let uploadHTML = "";
|
||||
uploadHTML = '<input class="b3-form__upload" type="file" multiple="multiple"';
|
||||
|
|
|
|||
|
|
@ -161,4 +161,4 @@ ${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14))
|
|||
window.siyuan.menus.menu.popup(position, position.isLeft);
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue