RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Edge sometimes doesn't remove the headers, which cause we paste more things then expected.
 * So we need to remove it in our code
 * @param html The HTML string got from clipboard
 */
Edge sometimes doesn't remove the headers, which cause we paste more things then expected.
So we need to remove it in our code
@param html The HTML string got from clipboard
Edge sometimes doesn ' t remove the headers which cause we paste more things then expected . So we need to remove it in our code @param html The HTML string got from clipboard
function workaroundForEdge(html) {
    var headerValues = CLIPBOARD_HTML_HEADER_REGEX.exec(html);
    if (headerValues && headerValues.length == 3) {
        var start = parseInt(headerValues[1]);
        var end = parseInt(headerValues[2]);
        if (start > 0 && end > start) {
            html = html.substring(start, end);
        }
    }
    return html;
}
function workaroundForEdge ( html ) { var headerValues = CLIPBOARD_HTML_HEADER_REGEX . exec ( html ) ; if ( headerValues && headerValues . length == 3 ) { var start = parseInt ( headerValues [ 1 ] ) ; var end = parseInt ( headerValues [ 2 ] ) ; if ( start > 0 && end > start ) { html = html . substring ( start , end ) ; } } return html ; }
Edge sometimes doesn't remove the headers, which cause we paste more things then expected.
Edge sometimes doesn ' t remove the headers which cause we paste more things then expected .