Class type Goog.​Geditor.​Plugins.​linkBubble

class type linkBubble = object..end

Inherits


method createBubbleContents : 
'a. (#Dom_html.element as 'a) Js.t -> unit Js.meth

Should be overriden by subclasses to add the type specific contents to the bubble.

method getBubbleTargetFromSelection : 
'b. (#Dom_html.element as 'b) Js.t -> Dom_html.element Js.t Js.opt Js.meth

Should be overriden by subclasses to return the bubble target element or null if an element of their required type isn't found.

Returns The HTML bubble target element or null if no element of the required type is not found.

method getBubbleTitle : Js.js_string Js.t Js.meth

Returns The title for bubble shown by this plugin. Defaults to no title. Should be overridden by subclasses.

method getBubbleType : Js.js_string Js.t Js.meth

Returns The type of bubble shown by this plugin. Usually the tag name of the element this bubble targets.

method getTrogClassId : Js.js_string Js.t Js.meth

Returns The ID unique to this plugin class. Note that different instances off the plugin share the same classId.

method isInvalidUrl : bool Js.t Js.meth

Returns whether the URL should be considered invalid. This always returns false in the base class, and should be overridden by subclasses that wish to impose validity rules on URLs.

Returns Whether the URL should be considered invalid.

method setTestLinkUrlFn : 
(Js.js_string Js.t -> Js.js_string Js.t) Js.callback -> unit Js.meth

Set the optional function for getting the "test" link of a url.

method stopReferrerLeaks : unit Js.meth

Tells the plugin to stop leaking the page's url via the referrer header when the link text link is clicked. When the user clicks on a link, the browser makes a request for the link url, passing the url of the current page in the request headers. If the user wants the current url to be kept secret (e.g. an unpublished document), the owner of the url that was clicked will see the secret url in the request headers, and it will no longer be a secret. Calling this method will not send a referrer header in the request, just as if the user had opened a blank window and typed the url in themselves.