Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14642

Vanessaa82693f90be2
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 21e6a53f81..b11c1c0566 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2334,7 +2334,9 @@ export class WYSIWYG {
/// #if MOBILE
// https://github.com/siyuan-note/siyuan/issues/10513
const virtualRefElement = hasClosestByAttribute(event.target, "data-type", "virtual-block-ref");
- if (virtualRefElement) {
+ if (virtualRefElement && range.toString() === "") {
+ event.stopPropagation();
+ event.preventDefault();
const blockElement = hasClosestBlock(virtualRefElement);
if (blockElement) {
fetchPost("/api/block/getBlockDefIDsByRefText", {