Home > Documentation >
Ephox EditLive! for Java JavaScript API > EditLive! for Java Run Time API
Ephox EditLive! for Java JavaScript Run Time API Reference
Note: If you have instantiated EditLive! for Java using one of
the scripting libraries, other than JavaScript, provided by Ephox (e.g. JSP or
ASP) then the name assigned to the relevant JavaScript object is that of the name
attribute or property with "_js" appended to it. For
example, if the name attribute or property was ELJName then the
<BODY> of the EditLive! for Java applet could be retrieved with the
following JavaScript method call:
ELJName_js.GetBody('retrieveContent');
Functions
-
- GetBody
This function retrieves the contents of the EditLive! for Java
applet. It will retrieve all contents which lie between the
<BODY> tags. This function takes the name of a JavaScript
function as its only parameter.
- GetCharCount
This function obtains a count of the number of characters present within the
EditLive! for Java applet. It counts the number of characters which lie
between the <BODY> tags. This function takes the name of a
JavaScript function as its only parameter.
- GetDocument
This function retrieves the contents of the EditLive! for Java
applet. It will retrieve all contents which lie between the
<HTML> tags. This function takes the name of a JavaScript
function as its only parameter.
- GetWordCount
This function obtains a count of the number of words present within the
EditLive! for Java applet. It counts the number of words which lie
between the <BODY> tags. This function takes the name of a
JavaScript function as its only parameter.
- GetStyles
This function retrieves the styling information from the EditLive! for
Java applet. It will retrieve all style information which lies
between the <STYLE> tags in the document's <HEAD>. This
function takes the name of a JavaScript function as its only parameter.
- InsertHTMLAtCursor
This function inserts developer specified HTML at the cursor within the
EditLive! for Java applet. This function takes a JavaScript string
as its only parameter.
- InsertHyperlinkAtCursor
This function inserts developer specified hyperlink for the selection
within the EditLive! for Java applet. This function takes a
JavaScript string as its only parameter.
- SetBody
This function sets the contents of the EditLive! for Java applet. It
will replace any existing contents of the applet with the contents the
function is provided with as its parameter. This function takes a
JavaScript string as its only parameter. This function will set the
contents of EditLive! for Java between the <BODY> tags.
- SetDocument
This function sets the contents of the EditLive! for Java applet. It
will replace any existing contents of the applet with the contents the
function is provided with as its parameter. This function takes a
JavaScript string as its only parameter. This function will set the
contents of EditLive! for Java between the <HTML> tags.
- SetProperties
This function is for use in conjunction with the custom properties
dialog. This function, when given a string of relevant name-value pairs,
sets the attributes for an instance of a specific tag within EditLive! for
Java. For more information on how to use custom properties dialogs with
EditLive! for Java please see Custom Properties Dialogs for EditLive! for Java.
- UploadImages
This function uploads any local images, within the instance of EditLive!
for Java, to the Web server. Upon calling this function the URLs for
local images within the applet will be changed to point to the copies on
the Web server instead of the local copies.
Copyright © 2001-2004 Ephox Corporation. All
Rights Reserved.