RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Insert the converted list item into the correct place.
 * @param convertedListElement List element that is converted from list item block
 * @param rootElement Root element of that contains the converted listItemBlock
 * @param listItemBlock List item block that was converted.
 */
Insert the converted list item into the correct place.
@param convertedListElement List element that is converted from list item block
@param rootElement Root element of that contains the converted listItemBlock
@param listItemBlock List item block that was converted.
Insert the converted list item into the correct place . @param convertedListElement List element that is converted from list item block @param rootElement Root element of that contains the converted listItemBlock @param listItemBlock List item block that was converted .
function insertConvertedListToDoc(convertedListElement, rootElement, listItemBlock) {
    if (!convertedListElement) {
        return;
    }
    var insertPositionNode = listItemBlock.insertPositionNode;
    if (insertPositionNode) {
        var parentElement = insertPositionNode.parentElement;
        if (parentElement) {
            parentElement.insertBefore(convertedListElement, insertPositionNode);
        }
    }
    else {
        var parentElement = listItemBlock.startElement.parentElement;
        if (parentElement) {
            parentElement.appendChild(convertedListElement);
        }
        else {
            rootElement.append(convertedListElement);
        }
    }
}
function insertConvertedListToDoc ( convertedListElement , rootElement , listItemBlock ) { if ( ! convertedListElement ) { return ; } var insertPositionNode = listItemBlock . insertPositionNode ; if ( insertPositionNode ) { var parentElement = insertPositionNode . parentElement ; if ( parentElement ) { parentElement . insertBefore ( convertedListElement , insertPositionNode ) ; } } else { var parentElement = listItemBlock . startElement . parentElement ; if ( parentElement ) { parentElement . appendChild ( convertedListElement ) ; } else { rootElement . append ( convertedListElement ) ; } } }
Insert the converted list item into the correct place.
Insert the converted list item into the correct place .