mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
🚨
This commit is contained in:
parent
4c09d621d8
commit
83c1221102
4 changed files with 3 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue