mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
3d55a020a7
commit
1bacf63b0c
1 changed files with 2 additions and 2 deletions
|
|
@ -1038,9 +1038,9 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
|
||||||
});
|
});
|
||||||
textElements[1].value = titleElement.textContent;
|
textElements[1].value = titleElement.textContent;
|
||||||
textElements[1].addEventListener("input", (event) => {
|
textElements[1].addEventListener("input", (event) => {
|
||||||
const value = (event.target as HTMLInputElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "");
|
const value = (event.target as HTMLInputElement).value;
|
||||||
imgElement.setAttribute("title", value);
|
imgElement.setAttribute("title", value);
|
||||||
titleElement.textContent = value;
|
titleElement.innerText = value;
|
||||||
mathRender(titleElement);
|
mathRender(titleElement);
|
||||||
});
|
});
|
||||||
textElements[2].value = imgElement.getAttribute("alt") || "";
|
textElements[2].value = imgElement.getAttribute("alt") || "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue