mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🚨
This commit is contained in:
parent
b52f88bad7
commit
a3c4f63426
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||||
wbrElement.remove();
|
wbrElement.remove();
|
||||||
range.deleteContents();
|
range.deleteContents();
|
||||||
const tempElement = document.createElement("span");
|
const tempElement = document.createElement("span");
|
||||||
tempElement.setAttribute("data-type", "code")
|
tempElement.setAttribute("data-type", "code");
|
||||||
tempElement.textContent = Constants.ZWSP + code;
|
tempElement.textContent = Constants.ZWSP + code;
|
||||||
range.insertNode(tempElement);
|
range.insertNode(tempElement);
|
||||||
if (!hasPreviousSibling(tempElement)) {
|
if (!hasPreviousSibling(tempElement)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue