mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
47fdeab215
commit
d65aa75e49
2 changed files with 144 additions and 39 deletions
|
|
@ -1153,7 +1153,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
|
|||
imgElement.style.width = inputElement.value + "px";
|
||||
imgElement.style.height = "";
|
||||
});
|
||||
inputElement.addEventListener("change", () => {
|
||||
inputElement.addEventListener("blur", () => {
|
||||
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||
updateTransaction(protyle, id, nodeElement.outerHTML, html);
|
||||
window.siyuan.menus.menu.remove();
|
||||
|
|
@ -1215,7 +1215,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
|
|||
assetElement.style.width = "";
|
||||
imgElement.style.width = "";
|
||||
});
|
||||
inputElement.addEventListener("change", () => {
|
||||
inputElement.addEventListener("blur", () => {
|
||||
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||
updateTransaction(protyle, id, nodeElement.outerHTML, html);
|
||||
window.siyuan.menus.menu.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue