mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
dd3c011736
commit
6b51f9d778
1 changed files with 6 additions and 1 deletions
|
|
@ -622,8 +622,13 @@ export class Toolbar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (previousElement) {
|
if (previousElement) {
|
||||||
|
if (previousElement.nodeType !== 3 && previousElement.textContent === Constants.ZWSP) {
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/7548
|
||||||
|
previousElement.remove();
|
||||||
|
} else {
|
||||||
this.mergeNode(previousElement.childNodes);
|
this.mergeNode(previousElement.childNodes);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (nextElement) {
|
if (nextElement) {
|
||||||
this.mergeNode(nextElement.childNodes);
|
this.mergeNode(nextElement.childNodes);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue