UNPKG

@syncfusion/ej2-richtexteditor

Version:
49 lines (44 loc) 1.48 kB
/** * Node appending methods. * * @hidden */ export declare class InsertMethods { /** * WrapBefore method * * @param {Text} textNode - specifies the text node * @param {HTMLElement} parentNode - specifies the parent node * @param {boolean} isAfter - specifies the boolean value * @returns {Text} - returns the text value * @hidden */ static WrapBefore(textNode: Text, parentNode: HTMLElement, isAfter?: boolean): Text; /** * Wrap method * * @param {HTMLElement} childNode - specifies the child node * @param {HTMLElement} parentNode - specifies the parent node. * @returns {HTMLElement} - returns the element * @hidden */ static Wrap(childNode: HTMLElement, parentNode: HTMLElement): HTMLElement; /** * unwrap method * * @param {Node} node - specifies the node element. * @returns {Node[]} - returns the array of value * @hidden */ static unwrap(node: Node | HTMLElement): Node[]; /** * AppendBefore method * * @param {HTMLElement} textNode - specifies the element * @param {HTMLElement} parentNode - specifies the parent node * @param {boolean} isAfter - specifies the boolean value * @returns {void} * @hidden */ static AppendBefore(textNode: HTMLElement | Text | DocumentFragment, parentNode: HTMLElement | Text | DocumentFragment, isAfter?: boolean): HTMLElement | Text | DocumentFragment; }