Sfoglia il codice sorgente

:art: fix https://github.com/siyuan-note/siyuan/issues/9015

Vanessa 1 anno fa
parent
commit
530f011686
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      app/src/protyle/wysiwyg/input.ts

+ 4 - 0
app/src/protyle/wysiwyg/input.ts

@@ -84,6 +84,10 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
         wbrElement.remove();
         wbrElement.remove();
         return;
         return;
     }
     }
+    // https://github.com/siyuan-note/siyuan/issues/9015
+    if (trimStartText === "¥¥<wbr>") {
+        editElement.innerHTML = "$$<wbr>";
+    }
     const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
     const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
     if (refElement && refElement.getAttribute("data-subtype") === "d") {
     if (refElement && refElement.getAttribute("data-subtype") === "d") {
         const response = await fetchSyncPost("/api/block/getRefText", {id: refElement.getAttribute("data-id")});
         const response = await fetchSyncPost("/api/block/getRefText", {id: refElement.getAttribute("data-id")});