diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index b5704c888..6bb7e5f52 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -560,7 +560,7 @@ export class Toolbar { hasSameTextStyle(item, nextElement, textObj)) { nextIndex = item.textContent.length; nextElement.innerHTML = item.innerHTML + nextElement.innerHTML; - } else if (item.tagName !== "BR") { + } else if (item.tagName !== "BR" && item.tagName !== "IMG") { if (item.getAttribute("data-type")?.indexOf("backslash") > -1 && item.firstChild?.textContent === "\\") { item.firstChild.remove();