diff --git a/app/src/menus/util.ts b/app/src/menus/util.ts index a484dbb88..69ffd579b 100644 --- a/app/src/menus/util.ts +++ b/app/src/menus/util.ts @@ -185,5 +185,5 @@ export const copyPNGByLink = (link:string) => { }; tempElement.src = link; } -} +}; diff --git a/app/src/protyle/render/av/asset.ts b/app/src/protyle/render/av/asset.ts index f21e28ede..f8e500c9e 100644 --- a/app/src/protyle/render/av/asset.ts +++ b/app/src/protyle/render/av/asset.ts @@ -135,7 +135,7 @@ export const updateAssetCell = (options: { } else { cellValue.mAsset = mAssetValue; } - const avID = options.blockElement.getAttribute("data-av-id") + const avID = options.blockElement.getAttribute("data-av-id"); cellDoOperations.push({ action: "updateAttrViewCell", id: cellValue.id, @@ -248,7 +248,7 @@ ${window.siyuan.languages.title} copyPNGByLink(linkAddress); } }); - menu.addSeparator() + menu.addSeparator(); } menu.addItem({ icon: "iconTrashcan", diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index 0dec96bd2..120ecfceb 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/app/src/protyle/render/av/blockAttr.ts @@ -191,7 +191,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]
`; - html += `
${innerHTML}
` + html += `
${innerHTML}
`; if (element.innerHTML) { // 防止 blockElement 找不到 diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 3ab8de8b7..f6bd5b3e8 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1557,7 +1557,7 @@ export class WYSIWYG { index = i; return true; } - }) + }); editAssetItem({ protyle, cellElements: [avCellElement], @@ -1567,7 +1567,7 @@ export class WYSIWYG { name: target.tagName === "IMG" ? "" : target.textContent, index, rect: target.getBoundingClientRect() - }) + }); event.stopPropagation(); event.preventDefault(); return;