This commit is contained in:
parent
a1fa1d16bb
commit
7dbc5465bd
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
}
|
||||
}
|
||||
const id = blockElement.getAttribute("data-node-id");
|
||||
if (type !== "NodeCodeBlock" && (editElement.innerHTML.endsWith("\n<wbr>") || editElement.innerHTML.endsWith("\n<wbr>\n"))) {
|
||||
if ((type !== "NodeCodeBlock" && type !== "NodeHeading") && // https://github.com/siyuan-note/siyuan/issues/11851
|
||||
(editElement.innerHTML.endsWith("\n<wbr>") || editElement.innerHTML.endsWith("\n<wbr>\n"))) {
|
||||
// 软换行
|
||||
updateTransaction(protyle, id, blockElement.outerHTML, protyle.wysiwyg.lastHTMLs[id] || blockElement.outerHTML.replace("\n<wbr>", "<wbr>"));
|
||||
wbrElement.remove();
|
||||
|
|
Loading…
Add table
Reference in a new issue