mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
This commit is contained in:
parent
73e2ce44e9
commit
c6d2d629e8
16 changed files with 98 additions and 78 deletions
|
|
@ -6,7 +6,7 @@ import {fetchPost} from "../util/fetch";
|
|||
import {onGet} from "../protyle/util/onGet";
|
||||
import {addLoading} from "../protyle/ui/initUI";
|
||||
import {scrollCenter} from "../util/highlightById";
|
||||
import {hasClosestByAttribute} from "../protyle/util/hasClosest";
|
||||
import {isInEmbedBlock} from "../protyle/util/hasClosest";
|
||||
import {setEditMode} from "../protyle/util/setEditMode";
|
||||
import {hideElements} from "../protyle/ui/hideElements";
|
||||
import {pushBack} from "./util/MobileBackFoward";
|
||||
|
|
@ -34,7 +34,7 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_
|
|||
}
|
||||
let blockElement;
|
||||
Array.from(window.siyuan.mobile.editor.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`)).find((item: HTMLElement) => {
|
||||
if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed")) {
|
||||
if (!isInEmbedBlock(item)) {
|
||||
blockElement = item;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue