RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Flatten the list items, so that all the consecutive list items are under the same parent.
 * @param doc Root element of that contains the element.
 * @param listItemBlock The list item block needed to be flattened.
 */
Flatten the list items, so that all the consecutive list items are under the same parent.
@param doc Root element of that contains the element.
@param listItemBlock The list item block needed to be flattened.
Flatten the list items so that all the consecutive list items are under the same parent . @param doc Root element of that contains the element . @param listItemBlock The list item block needed to be flattened .
function flattenListBlock(rootElement, listItemBlock) {
    var collapsedListItemSections = roosterjs_editor_dom_1.collapseNodes(rootElement, listItemBlock.startElement, listItemBlock.endElement, true);
    collapsedListItemSections.forEach(function (section) {
        if (roosterjs_editor_dom_1.getTagOfNode(section.firstChild) == 'DIV') {
            roosterjs_editor_dom_1.unwrap(section);
        }
    });
}
function flattenListBlock ( rootElement , listItemBlock ) { var collapsedListItemSections = roosterjs_editor_dom_1 . collapseNodes ( rootElement , listItemBlock . startElement , listItemBlock . endElement , true ) ; collapsedListItemSections . forEach ( function ( section ) { if ( roosterjs_editor_dom_1 . getTagOfNode ( section . firstChild ) == 'DIV' ) { roosterjs_editor_dom_1 . unwrap ( section ) ; } } ) ; }
Flatten the list items, so that all the consecutive list items are under the same parent.
Flatten the list items so that all the consecutive list items are under the same parent .