UNPKG

@wangeditor-next/yjs-for-react

Version:

React specific components/utils for wangeditor-next-yjs.

19 lines (18 loc) 661 B
/** * @description align video menu */ import { IButtonMenu, IDomEditor } from '@wangeditor-next/core'; import { VideoAlign } from '../custom-types'; declare class VideoAlignMenu implements IButtonMenu { readonly align: VideoAlign; readonly iconSvg: string; readonly tag = "button"; readonly title: string; constructor(align: VideoAlign, titleKey: string, iconSvg: string); private getSelectedVideo; getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; isDisabled(editor: IDomEditor): boolean; exec(editor: IDomEditor, _value: string | boolean): void; } export default VideoAlignMenu;