This commit is contained in:
Vanessa 2022-07-07 22:08:59 +08:00
parent f63d551e2e
commit 50ff1cfb1c

View file

@ -109,6 +109,7 @@ export const getTopAloneElement = (topSourceElement: Element) => {
if (topSourceElement.parentElement.getAttribute("data-type") === "NodeBlockquote" && topSourceElement.parentElement.childElementCount === 2) {
topSourceElement = topSourceElement.parentElement;
} else {
topSourceElement = getTopAloneElement(topSourceElement);
break;
}
}