mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 16:34:06 +01:00
This commit is contained in:
parent
8b8859bc54
commit
1bb123b74a
15 changed files with 41 additions and 31 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import Protyle from "../protyle";
|
||||
import {Protyle} from "../protyle";
|
||||
import {setEditor} from "./util/setEmpty";
|
||||
import {closePanel} from "./util/closePanel";
|
||||
import {Constants} from "../constants";
|
||||
|
|
@ -21,7 +21,7 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
|
|||
setEditMode(window.siyuan.mobileEditor.protyle, "wysiwyg");
|
||||
}
|
||||
let blockElement;
|
||||
Array.from(window.siyuan.mobileEditor.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`)).find(item => {
|
||||
Array.from(window.siyuan.mobileEditor.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`)).find((item: HTMLElement) => {
|
||||
if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed")) {
|
||||
blockElement = item;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue