This commit is contained in:
Vanessa 2023-11-24 20:54:08 +08:00
parent d47d5ade8e
commit 079328dee9
3 changed files with 2 additions and 32 deletions

View file

@ -561,10 +561,6 @@ export class Toolbar {
nextIndex = item.textContent.length;
nextElement.innerHTML = item.innerHTML + nextElement.innerHTML;
} else if (item.tagName !== "BR" && item.tagName !== "IMG") {
if (item.getAttribute("data-type")?.indexOf("backslash") > -1 &&
item.firstChild?.textContent === "\\") {
item.firstChild.remove();
}
item.setAttribute("data-type", types.join(" "));
setFontStyle(item, textObj);
newNodes.push(item);