Explorar el Código

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

Vanessa hace 1 año
padre
commit
a34b73551d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/src/protyle/wysiwyg/input.ts

+ 1 - 1
app/src/protyle/wysiwyg/input.ts

@@ -84,7 +84,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
         brElement.remove();
     }
 
-    if (editElement.innerHTML === "》<wbr>" || editElement.innerHTML.indexOf("\n》<wbr>") > -1) {
+    if (editElement.innerHTML.startsWith("》<wbr>") || editElement.innerHTML.indexOf("\n》<wbr>") > -1) {
         editElement.innerHTML = editElement.innerHTML.replace("》<wbr>", "><wbr>");
     }
     const trimStartText = editElement.innerHTML.trimStart();