link.js
No description.

File Location

/goog/editor/link.js

Classes

goog.editor.Link
Wrap an editable link.

Public Protected Private

Global Functions

goog.editor.Link.createNewLink(anchorurlopt_targetopt_extraAnchors) !goog.editor.Link
Initialize a new link.
Arguments:
anchor : HTMLAnchorElement
The anchor element.
url : string
The initial URL.
opt_target : string=
The target.
opt_extraAnchors : Array.<HTMLAnchorElement>>
Extra anchors created by the browser when parsing a selection.
Returns: !goog.editor.Link  The link.
code »
goog.editor.Link.isLikelyEmailAddress(str) boolean
Returns true if str could be an email address, false otherwise Ex: goog.editor.Link.isLikelyEmailAddress_("some word") == false goog.editor.Link.isLikelyEmailAddress_("foo@foo.com") == true
Arguments:
str : string
String to test for being email address.
Returns: boolean  Whether "str" looks like an email address.
code »
goog.editor.Link.isLikelyUrl(str) boolean
Returns true if str could be a URL, false otherwise Ex: TR_Util.isLikelyUrl_("http://www.google.com") == true TR_Util.isLikelyUrl_("www.google.com") == true
Arguments:
str : string
String to check if it looks like a URL.
Returns: boolean  Whether str could be a URL.
code »
goog.editor.Link.isMailto(url) boolean
Determines whether or not a url is an email link.
Arguments:
url : string
A url.
Returns: boolean  Whether the url is a mailto link.
code »

Directory editor

File Reference