mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
5704032318
commit
f52a7b703f
1 changed files with 1 additions and 2 deletions
|
|
@ -9,12 +9,11 @@ export const clearBlockElement = (element: Element) => {
|
||||||
element.querySelector(".protyle-attr--refcount")?.remove();
|
element.querySelector(".protyle-attr--refcount")?.remove();
|
||||||
element.removeAttribute("custom-avs");
|
element.removeAttribute("custom-avs");
|
||||||
element.removeAttribute("av-names");
|
element.removeAttribute("av-names");
|
||||||
debugger
|
|
||||||
element.getAttributeNames().forEach(attr => {
|
element.getAttributeNames().forEach(attr => {
|
||||||
if (attr.startsWith("custom-sy-av-s-text-")) {
|
if (attr.startsWith("custom-sy-av-s-text-")) {
|
||||||
element.removeAttribute(attr);
|
element.removeAttribute(attr);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const clearSelect = (types: ("av" | "img" | "cell" | "row" | "galleryItem")[], element: Element) => {
|
export const clearSelect = (types: ("av" | "img" | "cell" | "row" | "galleryItem")[], element: Element) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue