@wangeditor-kai/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
14 lines (13 loc) • 563 B
TypeScript
/**
* @description image menu helper
* @author wangfupeng
*/
import { IDomEditor } from '@wangeditor-next/core';
import { ImageStyle } from './custom-types';
/**
* 判断菜单是否要 disabled
* @param editor editor
*/
export declare function isInsertImageMenuDisabled(editor: IDomEditor): boolean;
export declare function insertImageNode(editor: IDomEditor, src: string, alt?: string, href?: string): Promise<void>;
export declare function updateImageNode(editor: IDomEditor, src: string, alt?: string, href?: string, style?: ImageStyle): Promise<void>;