Ephox Home Page Ephox Home Page  
Search
Buy/Upgrade
 
 Developers
Developers Home
EditLive! for Java
EditLive! for Windows
System Requirements
Getting Started
Integration Samples
Articles
API Reference
EditLive! for XML
Discussion Forums

InsertHyperlinkAtCursor Method

Turns the currently selected text or image in the document into a link to a given URL.

Applies To

EditLive Object

Syntax

JavaScript object.insertHyperlinkAtCursor( sHyperlinkURL );
 

Parameters

sHyperlinkURL Required. String that specifies the URL of where the hyperlink should point to. 

Examples

JavaScript

The following example would create a hyperlink to 'www.ephox.com' from the highlighted text or image.

function button1_onclick {
  editLive1.insertHyperlinkAtCursor( 'http://www.ephox.com' );
  }

Remarks

When this method is called using JavaScript it must begin with a lowercase 'i'.

In order to insert a hyperlink a selection of text or an image must be highlighted.

Minimum Version

EditLive! 1.2

See Also

 

 

Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation.
Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.