Merge pull request #26 from toeverything/bugfix/command-menu

fix command menu don's vanish on scorlling
This commit is contained in:
Diamond
2022-08-02 16:20:20 +08:00
committed by GitHub
2 changed files with 42 additions and 35 deletions
@@ -23,6 +23,7 @@ import type { DragDropManager } from './drag-drop';
import { MouseManager } from './mouse';
import { Observable } from 'rxjs';
import { Point } from '@toeverything/utils';
import { ScrollManager } from './scroll';
// import { BrowserClipboard } from './clipboard/browser-clipboard';
@@ -63,6 +64,7 @@ export interface VirgoSelection {
// Editor's external API
export interface Virgo {
selectionManager: SelectionManager;
scrollManager: ScrollManager;
createBlock: (
type: keyof BlockFlavors,
parentId?: string