@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
99 lines (88 loc) • 2.45 kB
TypeScript
/**
* Is formatted or not.
*
* @hidden
*/
export declare class IsFormatted {
static inlineTags: string[];
/**
* getFormattedNode method
*
* @param {Node} node - specifies the node.
* @param {string} format - specifies the string value.
* @param {Node} endNode - specifies the end node
* @returns {Node} - returns the node
* @hidden
*/
getFormattedNode(node: Node, format: string, endNode: Node): Node;
private getFormatParent;
/**
* Checks if the node is formatted with specified format
*
* @param {Node} node - specifies the node.
* @param {string} format - specifies the format type.
* @returns {boolean} - returns whether the node has the specified formatting
* @hidden
*/
isFormattedNode(node: Node, format: string): boolean;
/**
* isBold method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isBold(node: Node): boolean;
/**
* isItalic method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isItalic(node: Node): boolean;
/**
* isUnderline method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isUnderline(node: Node): boolean;
/**
* isStrikethrough method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isStrikethrough(node: Node): boolean;
/**
* isSuperscript method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isSuperscript(node: Node): boolean;
/**
* isSubscript method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isSubscript(node: Node): boolean;
private isFontColor;
private isBackgroundColor;
private isFontSize;
private isFontName;
/**
* isCode method
*
* @param {Node} node - specifies the node value
* @returns {boolean} - returns the boolean value
* @hidden
*/
static isCode(node: Node): boolean;
}