Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 15, 2024
1 parent b40ad35 commit 681489b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/menus/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ export const copyPNGByLink = (link:string) => {
};
tempElement.src = link;
}
}
};

4 changes: 2 additions & 2 deletions app/src/protyle/render/av/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -248,7 +248,7 @@ ${window.siyuan.languages.title}
copyPNGByLink(linkAddress);
}
});
menu.addSeparator()
menu.addSeparator();
}
menu.addItem({
icon: "iconTrashcan",
Expand Down
2 changes: 1 addition & 1 deletion app/src/protyle/render/av/blockAttr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]
<div class="fn__space"></div><div class="fn__space"></div>
<button data-type="addColumn" class="b3-button b3-button--outline"><svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}</button>
</div><div class="fn__hr--b"></div>`;
html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView">${innerHTML}</div>`
html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView">${innerHTML}</div>`;

if (element.innerHTML) {
// 防止 blockElement 找不到
Expand Down
4 changes: 2 additions & 2 deletions app/src/protyle/wysiwyg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ export class WYSIWYG {
index = i;
return true;
}
})
});
editAssetItem({
protyle,
cellElements: [avCellElement],
Expand All @@ -1567,7 +1567,7 @@ export class WYSIWYG {
name: target.tagName === "IMG" ? "" : target.textContent,
index,
rect: target.getBoundingClientRect()
})
});
event.stopPropagation();
event.preventDefault();
return;
Expand Down

0 comments on commit 681489b

Please sign in to comment.