mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
This commit is contained in:
parent
d00139402e
commit
93bb1c485c
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
|
||||
// https://github.com/siyuan-note/siyuan/issues/14114
|
||||
let heading2text = false;
|
||||
if (isBlock && (editableElement.textContent.replace(Constants.ZWSP, "") !== "" || blockElement.getAttribute("data-type") === "NodeHeading") &&
|
||||
if ((editableElement.textContent.replace(Constants.ZWSP, "") !== "" || blockElement.getAttribute("data-type") === "NodeHeading") &&
|
||||
tempElement.content.childElementCount === 1 &&
|
||||
tempElement.content.firstChild.nodeType !== 3 &&
|
||||
tempElement.content.firstElementChild.getAttribute("data-type") === "NodeHeading") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue