mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-22 03:50:55 +08:00
This commit is contained in:
parent
d1750170e1
commit
2b0eb3d01b
@ -453,13 +453,12 @@ export class Toolbar {
|
|||||||
setFontStyle(inlineElement, textObj);
|
setFontStyle(inlineElement, textObj);
|
||||||
newNodes.push(inlineElement);
|
newNodes.push(inlineElement);
|
||||||
} else {
|
} else {
|
||||||
// https://github.com/siyuan-note/siyuan/issues/7477
|
// https://github.com/siyuan-note/siyuan/issues/7477
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/8825
|
||||||
if (type === "block-ref") {
|
if (type === "block-ref") {
|
||||||
contents.childNodes.forEach((item: HTMLElement, index) => {
|
while (contents.childNodes.length > 1) {
|
||||||
if (index !== 0) {
|
contents.childNodes[0].remove();
|
||||||
item.remove();
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
contents.childNodes.forEach((item: HTMLElement, index) => {
|
contents.childNodes.forEach((item: HTMLElement, index) => {
|
||||||
if (item.nodeType === 3) {
|
if (item.nodeType === 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user