mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🚨
This commit is contained in:
parent
829b7d40d4
commit
6b4af527e1
4 changed files with 26 additions and 26 deletions
|
@ -727,7 +727,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
|
|||
const previous = hasPreviousSibling(range.startContainer);
|
||||
if (previous && previous.nodeType !== 3 && (previous as HTMLElement).classList.contains("img")) {
|
||||
if (!hasNextSibling(previous)) {
|
||||
range.insertNode(document.createTextNode(Constants.ZWSP))
|
||||
range.insertNode(document.createTextNode(Constants.ZWSP));
|
||||
range.collapse(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue