|
Installation
The installation is quite simple. All the classes needed are contained within the HTMLEditor.jar and if the Java Plug-in 1.3 or 1.4 is installed you will be able to see the applet opening the page which contains it. To include it within a page you have to include the following code inside the page.
To use the embedded mode the class to be started is sferyx.administration.editors.HTMLEditor
<applet code=sferyx.administration.editors.HTMLEditor archive=HTMLEditor.jar width=800 height=600>
</applet>
To use the external window mode the class to be started is sferyx.administration.editors.HTMLEditorFrame. Inside the calling page will appear only one button for the invocation of the editor, thus the dimensions of the applet can be reduced to 150 x 30 or something similar
<applet code=sferyx.administration.editors.HTMLEditorFrame archive=HTMLEditor.jar width=150 height=30>
</applet>
In generally this code is sufficient to achieve the desired result, thought sometimes there could be problems with the browser using its embedded java environment instead of the Java Plug-in 1.4.x. In this cases it would be necessary to use the following code which is also included into the demo and the example files:
For Internet Explorer:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "800" HEIGHT = "600" NAME = "htmleditor" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-win.cab#Version=1,4,0,0">
<PARAM NAME = CODE VALUE = "sferyx.administration.editors.HTMLEditor">
<PARAM NAME = ARCHIVE VALUE = "HTMLEditorAppletPro.jar">
<PARAM NAME = NAME VALUE = "htmleditor">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
<PARAM NAME="scriptable" VALUE="true">
<COMMENT>
</COMMENT>
</OBJECT>
Consult the html source of the demo included for major details on the inclusion of the applet within web pages.
|