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: </shared/eclipse/e4/orion/I201107200200/plugins/org.eclipse.orion.client.core/web/orion/links.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.links.TextLinkService(options)
Instantiates the text link service.
|
Method Attributes | Method Name and Description |
---|---|
addLinks(text)
Adds links to an input text string.
|
Class Detail
orion.links.TextLinkService(options)
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.
- Parameters:
- {Object} options
- The service options
Method Detail
{Object}
addLinks(text)
Adds links to an input text string.
- Parameters:
- {String} text
- The string to compute links for
- Returns:
- {Object} A DOM node containing the provided text as a series of text and anchor child nodes