RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Remove link at selection. If no links at selection, do nothing.
 * If selection contains multiple links, all of the link styles will be removed.
 * If only part of a link is selected, the whole link style will be removed.
 * @param editor The editor instance
 */
Remove link at selection. If no links at selection, do nothing.
If selection contains multiple links, all of the link styles will be removed.
If only part of a link is selected, the whole link style will be removed.
@param editor The editor instance
Remove link at selection . If no links at selection do nothing . If selection contains multiple links all of the link styles will be removed . If only part of a link is selected the whole link style will be removed . @param editor The editor instance
function removeLink(editor) {
    editor.focus();
    editor.addUndoSnapshot(function (start, end) {
        editor.queryElements('a[href]', 1 , roosterjs_editor_dom_1.unwrap);
        editor.select(start, end);
    }, "Format" );
}
function removeLink ( editor ) { editor . focus ( ) ; editor . addUndoSnapshot ( function ( start , end ) { editor . queryElements ( 'a[href]' , 1 , roosterjs_editor_dom_1 . unwrap ) ; editor . select ( start , end ) ; } , "Format" ) ; }
Remove link at selection.
Remove link at selection .
/* OnSelection */ /* Format */