mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
7ca9dcaae4
commit
1116f466bb
3 changed files with 4 additions and 3 deletions
|
@ -450,6 +450,7 @@
|
|||
"workspaceList": "工作空间",
|
||||
"removeWorkspaceTip": "从工作空间列表中移除",
|
||||
"new": "新建",
|
||||
"newTag": "新建标签",
|
||||
"share2LiandiConfirmTip": "确定将该文档<b>公开</b>分享到<a href=\"${accountServer}\" target=\"_blank\">社区</a>吗?<br>公开分享后所有人都可以查看该文档,请确保文档内容不包含敏感信息",
|
||||
"share2Liandi": "分享到社区",
|
||||
"noDueCard": "干得漂亮!目前已经没有更多复习任务,过一会再来看看吧!",
|
||||
|
|
|
@ -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