mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
8ab7c5cc73
commit
eb849e725a
1 changed files with 0 additions and 3 deletions
|
|
@ -1021,9 +1021,6 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
|
||||||
element.style.maxWidth = "none";
|
element.style.maxWidth = "none";
|
||||||
const textElements = element.querySelectorAll("textarea");
|
const textElements = element.querySelectorAll("textarea");
|
||||||
textElements[0].addEventListener("input", (event: InputEvent) => {
|
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, "");
|
const value = (event.target as HTMLInputElement).value.replace(/\n|\r\n|\r|\u2028|\u2029/g, "");
|
||||||
imgElement.setAttribute("src", value);
|
imgElement.setAttribute("src", value);
|
||||||
imgElement.setAttribute("data-src", value);
|
imgElement.setAttribute("data-src", value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue