Closure Library API Documentation
Go to class or file:
linkdialog.js
No description.
Useful links
Source Code
Git
File Location
/goog/ui/editor/linkdialog.js
Classes
goog.ui.editor.LinkDialog
A type of goog.ui.editor.AbstractDialog for editing/creating a link.
goog.ui.editor.LinkDialog.BeforeTestLinkEvent
Event fired before testing a link by opening it in another window. Calling preventDefault will stop the link from being opened.
goog.ui.editor.LinkDialog.OkEvent
OK event object for the link dialog.
Public
Protected
Private
Enumerations
Global Functions
goog.ui.editor.LinkDialog.
hasNoFollow
(
str
)
⇒
boolean
Checks if
str
contains
"nofollow"
as a separate word.
Arguments:
str
:
string
String to be tested. This is usually
rel
attribute of an
HTMLAnchorElement
object.
Returns:
boolean
true
if
str
contains
nofollow
.
code »
goog.ui.editor.LinkDialog.
removeNoFollow
(
rel
)
⇒
string
Removes
"nofollow"
from
rel
if it's present as a separate word.
Arguments:
rel
:
string
Input string. This is usually
rel
attribute of an
HTMLAnchorElement
object.
Returns:
string
rel
with any
"nofollow"
removed.
code »
Directory editor
File Reference