This commit is contained in:
Vanessa 2025-05-08 21:48:51 +08:00
parent 4c09d621d8
commit 83c1221102
4 changed files with 3 additions and 4 deletions

View file

@ -399,7 +399,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
const tempElement = document.createElement("div");
tempElement.innerHTML = siyuanHTML;
if (tempElement.childElementCount === 1) {
const types = ((tempElement.firstElementChild as HTMLElement).dataset?.type || "").split(" ")
const types = ((tempElement.firstElementChild as HTMLElement).dataset?.type || "").split(" ");
if (types.includes("block-ref")) {
protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {
type: "id",