mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 03:21:21 +08:00
This commit is contained in:
parent
77f350a61c
commit
fbcf15a59e
@ -32,7 +32,6 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
|
|||||||
});
|
});
|
||||||
if (blockElement) {
|
if (blockElement) {
|
||||||
pushBack();
|
pushBack();
|
||||||
focusBlock(blockElement);
|
|
||||||
scrollCenter(window.siyuan.mobile.editor.protyle, blockElement, true);
|
scrollCenter(window.siyuan.mobile.editor.protyle, blockElement, true);
|
||||||
closePanel();
|
closePanel();
|
||||||
return;
|
return;
|
||||||
|
@ -62,6 +62,7 @@ import {countBlockWord, countSelectWord} from "../../layout/status";
|
|||||||
import {showMessage} from "../../dialog/message";
|
import {showMessage} from "../../dialog/message";
|
||||||
import {getBacklinkHeadingMore, loadBreadcrumb} from "./renderBacklink";
|
import {getBacklinkHeadingMore, loadBreadcrumb} from "./renderBacklink";
|
||||||
import {removeSearchMark} from "../toolbar/util";
|
import {removeSearchMark} from "../toolbar/util";
|
||||||
|
import {activeBlur, hideKeyboardToolbar} from "../../mobile/util/keyboardToolbar";
|
||||||
|
|
||||||
export class WYSIWYG {
|
export class WYSIWYG {
|
||||||
public lastHTMLs: { [key: string]: string } = {};
|
public lastHTMLs: { [key: string]: string } = {};
|
||||||
@ -1539,6 +1540,8 @@ export class WYSIWYG {
|
|||||||
fetchPost("/api/block/checkBlockFold", {id: refBlockId}, (foldResponse) => {
|
fetchPost("/api/block/checkBlockFold", {id: refBlockId}, (foldResponse) => {
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
openMobileFileById(refBlockId, foldResponse.data ? [Constants.CB_GET_ALL, Constants.CB_GET_HL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
|
openMobileFileById(refBlockId, foldResponse.data ? [Constants.CB_GET_ALL, Constants.CB_GET_HL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
|
||||||
|
activeBlur();
|
||||||
|
hideKeyboardToolbar();
|
||||||
/// #else
|
/// #else
|
||||||
if (aElement) {
|
if (aElement) {
|
||||||
window.open(aElement.getAttribute("data-href"));
|
window.open(aElement.getAttribute("data-href"));
|
||||||
@ -1669,6 +1672,8 @@ export class WYSIWYG {
|
|||||||
const embedId = embedItemElement.getAttribute("data-id");
|
const embedId = embedItemElement.getAttribute("data-id");
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
openMobileFileById(embedId, [Constants.CB_GET_ALL]);
|
openMobileFileById(embedId, [Constants.CB_GET_ALL]);
|
||||||
|
activeBlur();
|
||||||
|
hideKeyboardToolbar();
|
||||||
/// #else
|
/// #else
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
openFileById({
|
openFileById({
|
||||||
|
Loading…
Reference in New Issue
Block a user