Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-11-26 10:14:29 +08:00
commit 285e56622a
4 changed files with 11 additions and 6 deletions

View file

@ -452,9 +452,14 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
)) {
isHTML = false;
} else {
// 需注意 Edge 中的选不应识别为图片 https://github.com/siyuan-note/siyuan/issues/7021
// 需注意 Edge 中的选不应识别为图片 https://github.com/siyuan-note/siyuan/issues/7021
isHTML = true;
}
if (textPlain && "" !== textPlain.trim() && textHTML.startsWith("<span") && -1 < textHTML.indexOf("white-space: pre;")) {
// 豆包复制粘贴问题 https://github.com/siyuan-note/siyuan/issues/13265
isHTML = false;
}
}
if (isHTML) {
const tempElement = document.createElement("div");