mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
6b1202be2a
commit
0b7eec276f
2 changed files with 9 additions and 8 deletions
|
|
@ -437,6 +437,14 @@ export class Toolbar {
|
|||
setFontStyle(inlineElement, textObj);
|
||||
newNodes.push(inlineElement);
|
||||
} else {
|
||||
// https://github.com/siyuan-note/siyuan/issues/7477
|
||||
if (type === "block-ref") {
|
||||
contents.childNodes.forEach((item: HTMLElement, index) => {
|
||||
if (index !== 0) {
|
||||
item.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
contents.childNodes.forEach((item: HTMLElement, index) => {
|
||||
if (item.nodeType === 3) {
|
||||
if (index === 0 && previousElement && previousElement.nodeType !== 3 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue