Vanessa 2024-02-06 21:48:23 +08:00
parent f6703be165
commit 6fe5754234

View file

@ -145,7 +145,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
if (blockElement.classList.contains("table")) {
scrollLeft = getContenteditableElement(blockElement).scrollLeft;
}
if (/<span data-type="backslash">.<\/span><wbr>/.test(html)) {
if (/<span data-type="backslash">.+<\/span><wbr>/.test(html)) {
// 转义不需要添加 zwsp
blockElement.outerHTML = html;
} else {