Vanessa 2025-11-22 23:04:59 +08:00
parent 5704032318
commit f52a7b703f

View file

@ -9,12 +9,11 @@ export const clearBlockElement = (element: Element) => {
element.querySelector(".protyle-attr--refcount")?.remove();
element.removeAttribute("custom-avs");
element.removeAttribute("av-names");
debugger
element.getAttributeNames().forEach(attr => {
if (attr.startsWith("custom-sy-av-s-text-")) {
element.removeAttribute(attr);
}
})
});
};
export const clearSelect = (types: ("av" | "img" | "cell" | "row" | "galleryItem")[], element: Element) => {