mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
656f094c44
commit
761a32c8df
2 changed files with 16 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue