fix: 移除 setInterval 轮询,改用纯事件驱动 selectionChange — 修复 CI 卡死问题
CI / test (20.x) (push) Canceled after 0s
CI / test (22.x) (push) Canceled after 0s
CI / test (24.x) (push) Canceled after 0s
CI / test (18.x) (push) Canceled after 1s

This commit is contained in:
2026-07-25 15:30:43 +08:00
parent 60588745d3
commit b48468f599
10 changed files with 98 additions and 237 deletions
-1
View File
@@ -291,7 +291,6 @@ declare class MarkdownEditor {
_themeCtx: any;
_i18nCtx: InstanceI18n;
_floatingToolbar: HTMLElement | null;
_selectionTimer: ReturnType<typeof setInterval> | null;
_floatingEnabled: boolean;
constructor(container: string | HTMLElement, options?: EditorOptions);
_buildDOM(): void;