diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index b5ec432b5..7623a284d 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -1021,9 +1021,6 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme element.style.maxWidth = "none"; const textElements = element.querySelectorAll("textarea"); textElements[0].addEventListener("input", (event: InputEvent) => { - if (event.isComposing) { - return; - } const value = (event.target as HTMLInputElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, ""); imgElement.setAttribute("src", value); imgElement.setAttribute("data-src", value);