From b973fed06be83645e2a111189787b839537fbd78 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 10 Jan 2026 10:26:13 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/16801 --- app/src/protyle/wysiwyg/transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index f045f89cd..909bc35c9 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -692,7 +692,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: if (getContenteditableElement(rangeBlockElement)) { range.insertNode(document.createElement("wbr")); } else { - getContenteditableElement(updateElements[0]).insertAdjacentHTML("afterbegin", ""); + getContenteditableElement(updateElements[0])?.insertAdjacentHTML("afterbegin", ""); } } }