UNPKG

@syncfusion/ej2-richtexteditor

Version:
84 lines (81 loc) 2.94 kB
/** * Insert a HTML Node or Text * * @hidden */ export declare class InsertHtml { /** * Insert method * * @hidden */ static inlineNode: string[]; static contentsDeleted: boolean; private static isAnotherLiFromEndLi; static Insert(docElement: Document, insertNode: Node | string, editNode?: Element, isExternal?: boolean, enterAction?: string): void; private static removeEmptyNextLI; private static findFirstTextNode; private static pasteInsertHTML; /** * Removes a <br> element that was temporarily marked with 'rte-temp-br' class. * This is used to clean up unnecessary line breaks after paste actions. * * @private * @param {HTMLElement} editNode - The container element where the temporary <br> may exist. * @returns {void} */ private static removeEmptyBrFromParagraph; private static compareParentElements; private static getFilteredAttributes; private static getClosestMatchingElement; private static findMatchingChild; private static listCleanUp; private static cleanUpListItems; private static cleanUpFlattenListContainer; private static cleanUpListContainer; private static placeCursorEnd; private static getNodeCollection; private static insertTempNode; private static extractChildNodes; private static insertBlockNodesInLI; private static processInsertNodes; private static wrapInlineElementsInSpan; private static unwrapInlineWrappers; private static removeEmptyAfterStartLI; private static clearIfCompletelyEmpty; private static getRootList; private static isRemovableEmptyListItem; private static findLiFromContainer; private static nonCollapsedInsertion; private static getClosestLi; private static getPreviousLi; private static getNextLi; private static appendListItems; private static moveSiblingsToLiAndInsert; private static handleSingleLiInsertion; private static handleMultiLiInsertion; private static pasteLI; private static handlePasteAtStart; private static handlePasteAtEnd; private static handlePasteInMiddle; private static hasNestedListInsideLi; private static getBlockNodeLength; private static addCursorMarker; private static extractNestedListsIntoNewListItem; private static createLiFragment; private static collectAndRemoveFollowingNodes; private static insertFragmentAfterLi; private static moveAllChildren; private static mergeLastNodeContent; private static cursorPos; private static imageFocus; private static getImmediateBlockNode; private static removingComments; private static findDetachEmptyElem; private static removeEmptyElements; private static closestEle; private static insertTableInList; private static moveChildNodes; private static alignCheck; private static removeListfromPaste; }