mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
cf7f3c948c
commit
73e2ce44e9
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
brElement.remove();
|
||||
}
|
||||
|
||||
if (editElement.innerHTML.startsWith("》<wbr>") || editElement.innerHTML.indexOf("\n》<wbr>") > -1) {
|
||||
if (type !== "NodeHeading" &&
|
||||
(editElement.innerHTML.startsWith("》<wbr>") || editElement.innerHTML.indexOf("\n》<wbr>") > -1)) {
|
||||
editElement.innerHTML = editElement.innerHTML.replace("》<wbr>", "><wbr>");
|
||||
}
|
||||
const trimStartText = editElement.innerHTML.trimStart();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue