This commit is contained in:
Vanessa 2023-09-11 14:43:04 +08:00
parent 7131ca0692
commit 3b87b85639

View file

@ -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();