@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
39 lines (38 loc) • 1.38 kB
TypeScript
import { IToolbarStatus } from './../../common/interface';
/**
* Update Toolbar Status
*
* @hidden
* @private
*/
export declare const statusCollection: IToolbarStatus;
export declare class ToolbarStatus {
/**
* get method
*
* @param {Document} docElement - specifies the document element
* @param {Node} rootNode - specifies the content editable element
* @param {string[]} formatNode - specifies the format node
* @param {string[]} fontSize - specifies the font size
* @param {string[]} fontName - specifies the font name.
* @param {Node} documentNode - specifies the document node.
* @returns {IToolbarStatus} - returns the toolbar status
* @hidden
* @private
*/
static get(docElement: Document, rootNode: Node, formatNode?: string[], fontSize?: string[], fontName?: string[], documentNode?: Node): IToolbarStatus;
private static getImmediateBlockNode;
private static getFormatParent;
private static checkCodeBlock;
private static isFormattedNode;
private static isFontColor;
private static isBackgroundColor;
private static isFontSize;
private static isFontName;
private static isAlignment;
private static isFormats;
private static getComputedStyle;
private static isNumberFormatList;
private static isBulletFormatList;
private static collectStyles;
}