mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 16:34:06 +01:00
This commit is contained in:
parent
7ca9dcaae4
commit
1116f466bb
3 changed files with 4 additions and 3 deletions
|
|
@ -381,7 +381,7 @@ export const hintTag = (key: string, protyle: IProtyle): IHintData[] => {
|
|||
if (response.data.k && !hasKey) {
|
||||
dataList.splice(0, 0, {
|
||||
value: `<span data-type="tag">${response.data.k}</span>`,
|
||||
html: `<div class="b3-list-item__text">${window.siyuan.languages.new} <mark>${escapeHtml(response.data.k)}</mark></div>`,
|
||||
html: `<div class="b3-list-item__text">${window.siyuan.languages.newTag} <mark>${escapeHtml(response.data.k)}</mark></div>`,
|
||||
});
|
||||
if (dataList.length > 1) {
|
||||
dataList[1].focus = true;
|
||||
|
|
|
|||
|
|
@ -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