RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Adjust the given position and return a better position (if any) or the given position
 * which will be the best one for inserting the given node.
 * @param root Root node of the scope
 * @param nodeToInsert The node about to be inserted
 * @param position The original position to insert the node
 */
Adjust the given position and return a better position (if any) or the given position
which will be the best one for inserting the given node.
@param root Root node of the scope
@param nodeToInsert The node about to be inserted
@param position The original position to insert the node
Adjust the given position and return a better position ( if any ) or the given position which will be the best one for inserting the given node . @param root Root node of the scope @param nodeToInsert The node about to be inserted @param position The original position to insert the node
function adjustNodeInsertPosition(root, nodeToInsert, position) {
    adjustSteps.forEach(function (handler) {
        position = handler(root, nodeToInsert, position);
    });
    return position;
}
function adjustNodeInsertPosition ( root , nodeToInsert , position ) { adjustSteps . forEach ( function ( handler ) { position = handler ( root , nodeToInsert , position ) ; } ) ; return position ; }
Adjust the given position and return a better position (if any) or the given position
 which will be the best one for inserting the given node.
Adjust the given position and return a better position ( if any ) or the given position which will be the best one for inserting the given node .