`;
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
@@ -537,8 +542,8 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
}]);
if (element.parentElement.textContent.trim() === element.textContent.trim() && element.parentElement.tagName === "DIV") {
submenu.push({
+ iconHTML: "",
label: window.siyuan.languages.blockEmbed,
- icon: "iconSQL",
click() {
const html = `${nodeElement.querySelector(".protyle-attr").outerHTML}
`;
nodeElement.outerHTML = html;
@@ -549,6 +554,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
});
}
submenu.push({
+ iconHTML: "",
label: window.siyuan.languages.defBlock,
click() {
fetchPost("/api/block/swapBlockRef", {
@@ -559,6 +565,7 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
}
});
submenu.push({
+ iconHTML: "",
label: window.siyuan.languages.defBlockChildren,
click() {
fetchPost("/api/block/swapBlockRef", {