@wangeditor-kai/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
20 lines (19 loc) • 1.29 kB
TypeScript
/**
* @description emotion menu
* @author wangfupeng
*/
import { IDomEditor, IDropPanelMenu } from '@wangeditor-next/core';
import { DOMElement } from '../../../utils/dom';
declare class EmotionMenu implements IDropPanelMenu {
readonly title: string;
readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z\"></path></svg>";
readonly tag = "button";
readonly showDropPanel = true;
private $content;
exec(_editor: IDomEditor, _value: string | boolean): void;
getValue(_editor: IDomEditor): string | boolean;
isActive(_editor: IDomEditor): boolean;
isDisabled(editor: IDomEditor): boolean;
getPanelContentElem(editor: IDomEditor): DOMElement;
}
export default EmotionMenu;