Vanessa 2025-05-26 21:34:22 +08:00
parent 656f094c44
commit 761a32c8df
2 changed files with 16 additions and 2 deletions

View file

@ -8,6 +8,17 @@ import {getAllModels} from "../../layout/getAll";
/// #endif
import {stickyRow} from "../render/av/row";
export const clearBeforeResizeTop = () => {
/// #if !MOBILE
getAllModels().editor.forEach((item) => {
if (item.editor && item.editor.protyle &&
item.element.parentElement && !item.element.classList.contains("fn__none")) {
item.editor.protyle.wysiwyg.element.querySelector("[data-resize-top]")?.removeAttribute("data-resize-top");
}
});
/// #endif
}
export const recordBeforeResizeTop = () => {
/// #if !MOBILE
getAllModels().editor.forEach((item) => {