mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 22:22:34 +01:00
This commit is contained in:
parent
7ca9dcaae4
commit
1116f466bb
3 changed files with 4 additions and 3 deletions
|
|
@ -252,7 +252,6 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
}) & {
|
||||
target: HTMLElement
|
||||
}) => {
|
||||
protyle.hint.enableExtend = false;
|
||||
if ("clipboardData" in event || "dataTransfer" in event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
@ -370,7 +369,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
}
|
||||
return;
|
||||
}
|
||||
hideElements(["select", "hint"], protyle);
|
||||
protyle.hint.enableExtend = Constants.BLOCK_HINT_KEYS.includes(protyle.hint.splitChar);
|
||||
hideElements(protyle.hint.enableExtend ? ["select"] : ["select", "hint"], protyle);
|
||||
protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--hl").forEach(item => {
|
||||
item.classList.remove("protyle-wysiwyg--hl");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue