mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
655667feff
commit
a74e91a2dd
1 changed files with 0 additions and 8 deletions
|
|
@ -45,14 +45,6 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false) =>
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let id = blockElement.getAttribute("data-node-id");
|
let id = blockElement.getAttribute("data-node-id");
|
||||||
if (range.toString() === "") {
|
|
||||||
// 连续粘贴 PDF 标注不生效 https://github.com/siyuan-note/siyuan/issues/3018
|
|
||||||
const fileAnnoElement = hasClosestByAttribute(range.startContainer, "data-type", "file-annotation-ref");
|
|
||||||
if (fileAnnoElement) {
|
|
||||||
range.setEndAfter(fileAnnoElement);
|
|
||||||
range.collapse(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
range.insertNode(document.createElement("wbr"));
|
range.insertNode(document.createElement("wbr"));
|
||||||
let oldHTML = blockElement.outerHTML;
|
let oldHTML = blockElement.outerHTML;
|
||||||
if (range.toString() !== "") {
|
if (range.toString() !== "") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue