mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
e72be57f11
commit
c7c35b4bf0
@ -259,14 +259,28 @@ export const fileAnnotationRefMenu = (protyle: IProtyle, refElement: HTMLElement
|
|||||||
}).element);
|
}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
label: `${window.siyuan.languages.turnInto} <b>${window.siyuan.languages.text}</b>`,
|
label: window.siyuan.languages.turnInto,
|
||||||
icon: "iconRefresh",
|
icon: "iconRefresh",
|
||||||
click() {
|
submenu: [{
|
||||||
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
iconHTML: "",
|
||||||
removeInlineType(refElement, "file-annotation-ref", protyle.toolbar.range);
|
label: window.siyuan.languages.text,
|
||||||
updateTransaction(protyle, id, nodeElement.outerHTML, oldHTML);
|
click() {
|
||||||
oldHTML = nodeElement.outerHTML;
|
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||||
}
|
removeInlineType(refElement, "file-annotation-ref", protyle.toolbar.range);
|
||||||
|
updateTransaction(protyle, id, nodeElement.outerHTML, oldHTML);
|
||||||
|
oldHTML = nodeElement.outerHTML;
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
iconHTML: "",
|
||||||
|
label: window.siyuan.languages.text + " *",
|
||||||
|
click() {
|
||||||
|
refElement.insertAdjacentHTML("beforebegin", refElement.innerHTML + " ");
|
||||||
|
refElement.textContent = "*";
|
||||||
|
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||||
|
updateTransaction(protyle, id, nodeElement.outerHTML, oldHTML);
|
||||||
|
oldHTML = nodeElement.outerHTML;
|
||||||
|
}
|
||||||
|
}]
|
||||||
}).element);
|
}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
icon: "iconTrashcan",
|
icon: "iconTrashcan",
|
||||||
|
Loading…
Reference in New Issue
Block a user