mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 09:24:06 +01:00
🎨 页面内容变化时保持 av 头尾
This commit is contained in:
parent
8641d0c6b2
commit
efd0828b9d
7 changed files with 79 additions and 63 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {hasClosestBlock, hasClosestByAttribute} from "../protyle/util/hasClosest";
|
||||
import {getEditorRange, getSelectionPosition} from "../protyle/util/selection";
|
||||
|
||||
const bgFade = (element: HTMLElement) => {
|
||||
export const bgFade = (element: Element) => {
|
||||
element.classList.add("protyle-wysiwyg--hl");
|
||||
setTimeout(function () {
|
||||
element.classList.remove("protyle-wysiwyg--hl");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue