jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
20 lines (19 loc) • 643 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module types
*/
import type { IDestructible } from "./types";
import type { IPopup } from "./popup";
export interface IContextMenuAction {
icon?: string;
title?: string;
exec?: (this: IContextMenu, e: MouseEvent) => false | void;
enabled?: boolean;
}
export interface IContextMenu extends IDestructible, IPopup {
show(x: number, y: number, actions: Array<false | IContextMenuAction>): void;
}