mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +01:00
This commit is contained in:
parent
a48854a166
commit
750303da7e
15 changed files with 36 additions and 30 deletions
|
|
@ -9,13 +9,13 @@ import {openNewWindowById} from "../window/openNewWindow";
|
|||
/// #endif
|
||||
/// #if !MOBILE
|
||||
import {moveResize} from "../dialog/moveResize";
|
||||
import {openFileById} from "../editor/util";
|
||||
/// #endif
|
||||
import {fetchPost} from "../util/fetch";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {App} from "../index";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {resize} from "../protyle/util/resize";
|
||||
import {openFileById} from "../editor/util";
|
||||
|
||||
export class BlockPanel {
|
||||
public element: HTMLElement;
|
||||
|
|
@ -120,11 +120,13 @@ export class BlockPanel {
|
|||
openNewWindowById(this.nodeIds[0]);
|
||||
/// #endif
|
||||
} else if (type === "stickTab") {
|
||||
/// #if !BROWSER
|
||||
openFileById({
|
||||
app: options.app,
|
||||
id: this.nodeIds[0],
|
||||
action: this.editors[0].protyle.block.rootID !== this.nodeIds[0] ? [Constants.CB_GET_ALL] : [Constants.CB_GET_CONTEXT],
|
||||
});
|
||||
/// #endif
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue