mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
4af21d1756
commit
54ac25cf6d
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||||
textHTML = "";
|
textHTML = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 剪切复制中首位包含空格或仅有空格 https://github.com/siyuan-note/siyuan/issues/5667
|
||||||
if (!textHTML.endsWith(Constants.ZWSP) && !textHTML.startsWith(Constants.ZWSP)) {
|
if (!textHTML.endsWith(Constants.ZWSP) && !textHTML.startsWith(Constants.ZWSP)) {
|
||||||
// process word
|
// process word
|
||||||
const doc = new DOMParser().parseFromString(textHTML, "text/html");
|
const doc = new DOMParser().parseFromString(textHTML, "text/html");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue