mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
8a1703e34a
commit
69c2afbd18
2 changed files with 1 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
|
||||||
id: target.dataset.id,
|
id: target.dataset.id,
|
||||||
data: !isOpen
|
data: !isOpen
|
||||||
}]);
|
}]);
|
||||||
}, Constants.TIMEOUT_TRANSITION);
|
}, Constants.TIMEOUT_COUNT);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -408,7 +408,6 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||||
tempElement.querySelectorAll("[data-node-id]").forEach((e) => {
|
tempElement.querySelectorAll("[data-node-id]").forEach((e) => {
|
||||||
const newId = Lute.NewNodeID();
|
const newId = Lute.NewNodeID();
|
||||||
e.setAttribute("data-node-id", newId);
|
e.setAttribute("data-node-id", newId);
|
||||||
e.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");
|
|
||||||
clearBlockElement(e);
|
clearBlockElement(e);
|
||||||
isBlock = true;
|
isBlock = true;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue