RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Cleans up the node children by removing the childs marked as mso-list: Ignore.
 * This nodes hold the fake bullet information that Word puts in and when
 * conversion is happening, we want to get rid of these elements
 */
Cleans up the node children by removing the childs marked as mso-list: Ignore.
This nodes hold the fake bullet information that Word puts in and when
conversion is happening, we want to get rid of these elements
Cleans up the node children by removing the childs marked as mso - list : Ignore . This nodes hold the fake bullet information that Word puts in and when conversion is happening we want to get rid of these elements
function cleanupListIgnore(node, levels) {
    var nodesToRemove = [];
    for (var child = node.firstChild; child; child = child.nextSibling) {
        if (child.nodeType == 1  && levels > 1) {
            cleanupListIgnore(child, levels - 1);
        }
        child = fixWordListComments(child, true );
        if (isEmptySpan(child) || isIgnoreNode(child)) {
            nodesToRemove.push(child);
        }
    }
    nodesToRemove.forEach(function (child) { return node.removeChild(child); });
}
function cleanupListIgnore ( node , levels ) { var nodesToRemove = [ ] ; for ( var child = node . firstChild ; child ; child = child . nextSibling ) { if ( child . nodeType == 1 && levels > 1 ) { cleanupListIgnore ( child , levels - 1 ) ; } child = fixWordListComments ( child , true ) ; if ( isEmptySpan ( child ) || isIgnoreNode ( child ) ) { nodesToRemove . push ( child ) ; } } nodesToRemove . forEach ( function ( child ) { return node . removeChild ( child ) ; } ) ; }
Cleans up the node children by removing the childs marked as mso-list: Ignore.
Cleans up the node children by removing the childs marked as mso - list : Ignore .
// Clean up the item internally first if we need to based on the number of levels /* Element */ // Try to convert word comments into ignore elements if we haven't done so for this element /*removeComments*/ // Check if we can remove this item out