This commit is contained in:
Vanessa 2022-09-27 00:19:38 +08:00
parent 117db7d42e
commit 360299d270

View file

@ -75,7 +75,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
if (refElement && refElement.getAttribute("data-subtype") === "d") {
const response = await fetchSyncPost("/api/block/getRefText", {id: refElement.getAttribute("data-id")});
if (response.data !== refElement.innerHTML) {
if (response.data !== refElement.innerHTML.replace("<wbr>", "")) {
refElement.setAttribute("data-subtype", "s");
}
}