goog.editor.Link |
anchor
: HTMLAnchorElement
The anchor element.
|
isNew
: boolean
Whether this is a new link.
|
![]()
After link creation, finish creating the link depending on the type
of link being created.
Arguments:
|
code » | |||
![]()
No description.
Returns: HTMLAnchorElement
The anchor element.
|
code » | |||
No description.
Returns: string
The inner text for the anchor.
|
code » | |||
No description.
Returns: !Array.<HTMLAnchorElement>
The extra anchor elements, if any,
created by the browser from a selection.
|
code » | |||
No description.
Returns: ?string
The modified string for the link if the link
text appears to be a valid link. Returns null if this is not
a valid link address.
|
code » | |||
![]()
Set the url without affecting the isNew() status of the link.
Arguments:
|
code » | |||
No description.
Returns: boolean
Whether the link is new.
|
code » | |||
![]()
Places the cursor to the right of the anchor.
Note that this is different from goog.editor.range's placeCursorNextTo
in that it specifically handles the placement of a cursor in browsers
that trap you in links, by adding a space when necessary and placing the
cursor after that space.
|
code » | |||
![]()
Removes the link, leaving its contents in the document. Note that this
object will no longer be usable/useful after this call.
|
code » | |||
![]()
Change the link.
|
code » | |||
![]()
Updates the cursor position and link bubble for this link.
Arguments:
|
code » |
Initialize a new link.
Arguments:
Returns: !goog.editor.Link
The link.
|
code » | |||||
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
|
code » | |||||
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
|
code » | |||||
Determines whether or not a url is an email link.
|
code » |
![]()
Regular expression that matches strings that could be an email address.
|
Code » |