This commit is contained in:
Vanessa 2023-10-29 19:49:36 +08:00
parent 14ad527fc8
commit c7cba8a831
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,10 @@
import {hideElements} from "../ui/hideElements";
export const destroy = (protyle: IProtyle) => {
if (!protyle) {
return;
}
hideElements(["util"], protyle);
protyle.element.classList.remove("protyle");
protyle.element.removeAttribute("style");
if (protyle.wysiwyg) {