This commit is contained in:
Vanessa 2022-08-18 12:36:24 +08:00
parent 4af21d1756
commit 54ac25cf6d

View file

@ -100,6 +100,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
textHTML = "";
}
// 剪切复制中首位包含空格或仅有空格 https://github.com/siyuan-note/siyuan/issues/5667
if (!textHTML.endsWith(Constants.ZWSP) && !textHTML.startsWith(Constants.ZWSP)) {
// process word
const doc = new DOMParser().parseFromString(textHTML, "text/html");