@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
32 lines (31 loc) • 721 B
TypeScript
import { IMDFormats } from './../base/interface';
/**
* SelectionCommands internal component
*
* @hidden
* @private
*/
export declare class MDSelectionFormats {
private parent;
private selection;
syntax: {
[key: string]: string;
};
private currentAction;
constructor(parent: IMDFormats);
private addEventListener;
private removeEventListener;
private keyDownHandler;
private isBold;
private isItalic;
private isMatch;
private multiCharRegx;
private singleCharRegx;
isAppliedCommand(cmd?: string): boolean;
private applyCommands;
private replaceAt;
private restore;
private textReplace;
private isApplied;
destroy(): void;
}