webgui/www/extras/eopro/index.htm
2002-05-07 02:03:08 +00:00

109 lines
3.5 KiB
HTML

<HTML>
<HEAD>
<TITLE>edit-on Pro</TITLE>
<SCRIPT language="JavaScript">
function functSet()
{
// Put the contents from the TEXTAREA field into the editor
document.myEditor.setHTMLData( "" , document.myForm.myTextArea.value );
}
function functGet()
{
// Get the contents of the editor and copy them into the TEXTAREA field
document.myForm.myTextArea.value = document.myEditor.getHTMLData( "" );
}
// This callback function is called after the applet has successfully initialized
function onEditorLoaded(editorapplet)
{
editorapplet.setHTMLData("http://","<p>Some <b>bold</b> Text</p>");
};
// This callback function is called after the applet has successfully finished loading HTML dat
function onDataLoaded(editorapplet)
{
editorapplet.insertHTMLData("http://","<p>Some more <b>bold</b> Text</p>");
};
</SCRIPT>
</HEAD>
<BODY bgcolor="#EEEEEE">
<center>
<h1>edit-on&reg; Pro by RealObjects</h1>
<APPLET code="EditorApplet" codeBase="." id="myEditor" name="myEditor"
archive="edit-on-pro-signed.jar,ssce.jar" width="700" height="400" VIEWASTEXT MAYSCRIPT>
<PARAM NAME="cabbase" VALUE="edit-on-pro-signed.cab,ssce.cab">
<PARAM NAME="locale" VALUE="en_US"> <!-- Change this to change UI language e.g de_DE, fr_FR, es_ES -->
<PARAM NAME="help" VALUE="eophelp/en_US/help_en_US.htm"> <!-- This is relative to CODEBASE, can be changed according to UI language -->
<PARAM NAME="toolbarurl" VALUE="toolbar-sample.xml"> <!-- This is relative to CODEBASE -->
<PARAM NAME="spellcheckproperties" VALUE="sc-americanenglish.txt"> <!-- This is relative to CODEBASE -->
<!-- <PARAM NAME="imageroot" VALUE="http://localhost"> Optional - Set this to the reference base of relative image SRCs -->
<!-- <PARAM NAME="imageproxyurl" VALUE="/cgi-bin/imageproxy.cgi?"> Optional - Set this if you use an unsigned CAB/JAR and want to insert remote images-->
<PARAM NAME="sourceview" VALUE="true">
<PARAM NAME="sourceviewwordwrap" VALUE="true">
<PARAM NAME="startupscreenbackgroundcolor" value="#EEEEEE">
<PARAM NAME="defaultfontcolor" VALUE="black">
<PARAM NAME="defaultbackgroundcolor" VALUE="white">
<PARAM NAME="defaultlinkcolor" VALUE="blue">
<PARAM NAME="defaultfontsize" VALUE="12">
<PARAM NAME="defaultfontface" VALUE="Serif">
<PARAM NAME="bodyonly" VALUE="true">
<PARAM NAME="textmode" VALUE="false">
<PARAM NAME="xhtmlmode" VALUE="true">
<PARAM NAME="inserttext_html" VALUE="TRUE">
<PARAM NAME="gethtmldataurl" VALUE=""> <!-- Absolute URL or relative to DOCBASE -->
<PARAM NAME="sethtmldataurl" VALUE=""> <!-- Absolute URL or relative to DOCBASE -->
<PARAM NAME="simpletable" VALUE="true">
<PARAM NAME="tableNBSPfill" VALUE="true">
<PARAM NAME="table_numrows" VALUE="3">
<PARAM NAME="table_numcols" VALUE="4">
<PARAM NAME="table_overallwidth" VALUE="100%">
<PARAM NAME="table_rowheight" VALUE="10">
<PARAM NAME="table_colwidth" VALUE="25%">
<PARAM NAME="ONEDITORLOADED" VALUE="onEditorLoaded">
<PARAM NAME="ONDATALOADED" VALUE="onDataLoaded">
<
</APPLET>
<form name="myForm">
<hr>
<input type="button" value="Get HTML Data from Editor" onClick="functGet();">
<input type="button" value="Set HTML Data into the Editor" onClick="functSet();">
<br><small>Note: This will not work if your plattform does not support "LiveConnect"<hr>
<br>Textarea:<br>
<textarea name="myTextArea" rows="10" cols="60"></textarea>
</form>
</center>
</FORM>
</BODY>
</HTML>