Class Index | File Index


Class orion.links.TextLinkService

A service for finding and inferring hyperlinks from a text input. The service examines a segment of text, and returns a DOm node with hyperlinks inserted in the appropriate locations. For example, the service could detect email addresses and convert them into mailto: hyperlinks.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/links.js>.

Class Summary
Constructor Attributes Constructor Name and Description
Instantiates the text link service.
Method Summary
Method Attributes Method Name and Description
addLinks(text, parent)
Adds links to an input text string.
Class Detail
Instantiates the text link service. Clients should obtain the orion.core.textlink service from the service registry rather than instantiating this service directly. This constructor is intended for use by page initialization code that is initializing the service registry.
{Object} options
The service options
Method Detail
{Object} addLinks(text, parent)
Adds links to an input text string. The links are added to the provided node, or to a new div node if not input node is provided.
{String} text
The string to compute links for
{Object} parent Optional
The optional parent DOM node to place the links into
{Object} A DOM node containing the provided text as a series of text and anchor child nodes

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 18 2017 12:15:12 GMT-0500 (EST)