mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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", "<wbr>");
|
||||
getContenteditableElement(updateElements[0])?.insertAdjacentHTML("afterbegin", "<wbr>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user