@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
66 lines (64 loc) • 2.1 kB
TypeScript
import { IRichTextEditor } from '../base/interface';
import { ServiceLocator } from '../services/service-locator';
import { RendererFactory } from '../services/renderer-factory';
import { Popup } from '@syncfusion/ej2-popups';
export declare class EmojiPicker {
protected parent: IRichTextEditor;
protected locator: ServiceLocator;
protected renderFactory: RendererFactory;
popupObj: Popup;
private popDiv;
private save;
private clickEvent;
private divElement;
private i10n;
private isDestroyed;
isPopupDestroyed: boolean;
noResultsFoundCount: number;
constructor(parent?: IRichTextEditor, serviceLocator?: ServiceLocator);
/**
* Destroys the Count.
*
* @function destroy
* @returns {void}
* @hidden
*/
destroy(): void;
childDestroy(): void;
protected addEventListener(): void;
private bindOnEnd;
private toolbarClick;
private removeActiveClass;
/**
* Positions the emoji picker dialog based on available screen space
* This method calculates the optimal position for the emoji picker popup
* considering available space below the trigger button. If insufficient space exists
* below, it positions the popup above the button instead.
*
* @param {HTMLElement} target - The target element relative to which the dialog should be positioned
* @param {HTMLElement} spanElement - The trigger element (emoji button) that activated the dialog
* @returns {void}
* @private
*/
private positionDialogue;
private onIframeMouseDown;
private buttoncode;
private docClick;
private scrollEvent;
private contentscroll;
private emojiToolbarClick;
private onKeyDown;
private filterKeyHandler;
private searchFilter;
private emojiBtnClick;
private onkeyPress;
private onkeyUp;
private getCoordinates;
protected removeEventListener(): void;
/**
* For internal use only - Get the module name.
*
* @returns {string} - returns the string value
*/
private getModuleName;
}