This commit is contained in:
Vanessa 2023-02-01 17:20:02 +08:00
parent b52f88bad7
commit a3c4f63426

View file

@ -178,7 +178,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
wbrElement.remove();
range.deleteContents();
const tempElement = document.createElement("span");
tempElement.setAttribute("data-type", "code")
tempElement.setAttribute("data-type", "code");
tempElement.textContent = Constants.ZWSP + code;
range.insertNode(tempElement);
if (!hasPreviousSibling(tempElement)) {