feat:add edit hyperlink contextmenu

This commit is contained in:
Hufe921
2022-08-14 23:49:53 +08:00
parent 32640f4d9e
commit 072f0db8ba
5 changed files with 52 additions and 10 deletions
@@ -1,3 +1,4 @@
import { Command } from '../../core/command/Command'
import { IElement } from '../Element'
export interface IContextMenuContext {
@@ -16,6 +17,6 @@ export interface IRegisterContextMenu {
name?: string;
shortCut?: string;
when?: (payload: IContextMenuContext) => boolean;
callback?: Function;
callback?: (command: Command, context: IContextMenuContext) => any;
childMenus?: IRegisterContextMenu[];
}