mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
5e9c24a409
commit
82ecfe1c19
@ -2036,6 +2036,26 @@ export class WYSIWYG {
|
|||||||
/// #endif
|
/// #endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/// #if MOBILE
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/10513
|
||||||
|
const virtualRefElement = hasClosestByAttribute(event.target, "data-type", "virtual-block-ref");
|
||||||
|
if (virtualRefElement) {
|
||||||
|
const blockElement = hasClosestBlock(virtualRefElement)
|
||||||
|
if (blockElement) {
|
||||||
|
fetchPost("/api/block/getBlockDefIDsByRefText", {
|
||||||
|
anchor: virtualRefElement.textContent,
|
||||||
|
excludeIDs: [blockElement.getAttribute("data-node-id")]
|
||||||
|
}, (response) => {
|
||||||
|
checkFold(response.data[0], (zoomIn) => {
|
||||||
|
openMobileFileById(protyle.app, response.data[0], zoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_HL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
||||||
|
activeBlur();
|
||||||
|
hideKeyboardToolbar();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/// #endif
|
||||||
|
|
||||||
const fileElement = hasClosestByAttribute(event.target, "data-type", "file-annotation-ref");
|
const fileElement = hasClosestByAttribute(event.target, "data-type", "file-annotation-ref");
|
||||||
if (fileElement && range.toString() === "") {
|
if (fileElement && range.toString() === "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user