diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index c7cd1b29b..1af8ab354 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -22,7 +22,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: if (blockElement.classList.contains("av")) { const avCursorElement = hasClosestByClassName(range.startContainer, "av__cursor"); if (avCursorElement) { - range.startContainer.textContent = Constants.ZWSP; + avCursorElement.textContent = Constants.ZWSP; } else { updateAVName(protyle, blockElement); }