RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
     * Create a new instance of HyperLink class
     * @param getTooltipCallback A callback function to get tooltip text for an existing hyperlink.
     * Default value is to return the href itself. If null, there will be no tooltip text.
     * @param target (Optional) Target window name for hyperlink. If null, will use "_blank"
     * @param onLinkClick (Optional) Open link callback (return false to use default behavior)
     */
Create a new instance of HyperLink class
@param getTooltipCallback A callback function to get tooltip text for an existing hyperlink.
Default value is to return the href itself. If null, there will be no tooltip text.
@param target (Optional) Target window name for hyperlink. If null, will use "_blank"
@param onLinkClick (Optional) Open link callback (return false to use default behavior)
Create a new instance of HyperLink class @param getTooltipCallback A callback function to get tooltip text for an existing hyperlink . Default value is to return the href itself . If null there will be no tooltip text . @param target ( Optional ) Target window name for hyperlink . If null will use " _blank " @param onLinkClick ( Optional ) Open link callback ( return false to use default behavior )
function HyperLink(getTooltipCallback, target, onLinkClick) {
        var _this = this;
        if (getTooltipCallback === void 0) { getTooltipCallback = function (href) { return href; }; }
        this.getTooltipCallback = getTooltipCallback;
        this.target = target;
        this.onLinkClick = onLinkClick;
        this.onMouse = function (e) {
            var a = _this.editor.getElementAtCursor('a[href]', e.target);
            var href = _this.tryGetHref(a);
            if (href) {
                _this.editor.setEditorDomAttribute('title', e.type == 'mouseover' ? _this.getTooltipCallback(href, a) : null);
            }
        };
    }
function HyperLink ( getTooltipCallback , target , onLinkClick ) { var _this = this ; if ( getTooltipCallback === void 0 ) { getTooltipCallback = function ( href ) { return href ; } ; } this . getTooltipCallback = getTooltipCallback ; this . target = target ; this . onLinkClick = onLinkClick ; this . onMouse = function ( e ) { var a = _this . editor . getElementAtCursor ( 'a[href]' , e . target ) ; var href = _this . tryGetHref ( a ) ; if ( href ) { _this . editor . setEditorDomAttribute ( 'title' , e . type == 'mouseover' ? _this . getTooltipCallback ( href , a ) : null ) ; } } ; }
Create a new instance of HyperLink class
 @param getTooltipCallback A callback function to get tooltip text for an existing hyperlink.
Create a new instance of HyperLink class @param getTooltipCallback A callback function to get tooltip text for an existing hyperlink .