Skip to content

Commit

Permalink
🎨 #12855
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 24, 2024
1 parent 3d55a02 commit 1bacf63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/menus/protyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1038,9 +1038,9 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
});
textElements[1].value = titleElement.textContent;
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);
titleElement.textContent = value;
titleElement.innerText = value;
mathRender(titleElement);
});
textElements[2].value = imgElement.getAttribute("alt") || "";
Expand Down

0 comments on commit 1bacf63

Please sign in to comment.