Lua Code:
local f = CreateFrame("EditBox", nil, UIParent, "InputBoxTemplate")
f:SetSize(300, 60)
f:SetPoint("CENTER")
f:SetHyperlinksEnabled(true)
f:SetText("Display a link: " .. GetSpellLink(2061) .. " and see what happens?")
f:SetScript("OnHyperlinkEnter", function(self, link, text, region, left, bottom, width, height)
GameTooltip:SetOwner(self, "ANCHOR_CURSOR_RIGHT")
GameTooltip:SetHyperlink(link)
GameTooltip:Show()
end)
f:SetScript("OnHyperlinkLeave", function(self)
GameTooltip:Hide()
end)