JXHTMLEdit

NameJXHTMLEDIT
Version4.0.005
Date2006-02-04
AuthorNicola Asuni
CopyrightTecnick.com S.r.l.
Via Ugo Foscolo n.19
09045 Quartu Sant'Elena (CA)
ITALY
www.tecnick.com
LicenseGNU GENERAL PUBLIC LICENSE v.2

[ description | features | example | setup ]

Description

JXHTMLEDIT is a browser-based HTML/XHTML content authoring tool based on the Java 2 Platform that allows WYSIWYG editing on multiple platforms (require the Sun JavaTM Plug-in 1.4 or higher installed on client).

WYSIWYG is the acronym of What You See Is What You Get, in other words, JXHTMLEDIT provides word processor-like user interface that allows to edit the document directly in the final form (as will be rendered). This empower non-technical users to become content contributors without any knowledge of HTML or XHTML.

JXHTMLEDIT outputs to your choice HTML or well-formed XHTML. Note that JXHTMLEDIT is specifically designed and optimized to edit only the <body> portion of HTML/XHTML page and not the entire page structure.

JXHTMLEDIT preloads the HTML/XHTML content during startup from a specified HTML form field (e.g.: <textarea>) where it also save generated code.

JXHTMLEDIT is flexible and could be used to easily integrate WYSIWYG authoring functionality into existing products or services as CMS (Content Management System), CRM (Customer Relationship Management), KMS (Knowledge Management Systems), or e-Learning.

Main Features



Example

To view this demo, you must have the Sun JavaTM Plug-in 1.4 or higher installed. If this plug-in is not yet installed, you can download it from: http://java.sun.com/products/plugin/index.html

As soon as you have installed the plug-in you can start the JXHTMLEDIT demo clicking the [Edit] button below.
XHTML Source Code:

See also the flat-page example >>.

Setup

To configure the XML files (java/config/) please refer to the XML files comments.

To load the JXHTMLEDIT applet on your page use the following syntax:
The following tables illustrates the meaning of customizable object parameters (or embed parameters), please leave other parameters as they are.

Customizable Parameters
name values default required
java_codebase (codebase) relative path to applet archive directory (e.g.: "java")   yes
java_archive jar file:
  • jxhtmledit.jar for signed applet
  • jxhtmledit_u.jar for unsigned applet
  yes
progressbar
  • true display progress bar while loading applet
  • false otherwise
false no
boxmessage applet loading message: JXHTMLEDIT Loading ...   no
name applet name   no
id applet id   no
width applet width in pixels   yes
height applet height in pixels   yes
hspace applet horizontal space   no
vspace applet vertical space   no
align applet alignment
  • left
  • right
  • top
  • middle
  • bottom
  no
param_page_encoding encoding character set of the html page where the applet is loaded UTF-8 no
param_encoding encoding character set of the document to edit UTF-8 no
param_lang ISO 639 language identifier (a two- or three-letter code) en no
param_separate_window
  • true the applet is on a popup window
  • false the applet is on the same page of the <form> specified on the following parameter "param_callingform"
true no
param_callingform name of the <form> containing the field indicated on the following parameter "param_callingfield"   yes
param_callingfield name of the <form> field (e.g.: <textarea>) from where to load and where to save HTML/XHTML document   yes
param_stylesheet CSS1 file to use as a document stylesheet; it could specified using an absolute ULR (e.g.: http://www.mysite.com/stylesheet.css) or a path relativive to jxhtmledit.jar file folder   no
param_hide_source
  • true hide source edit panel
  • false show source edit panel
false no
param_xhtml
  • true output XHTML code
  • false output HTML code
true no
param_indent
  • true indent XHTML output code
  • false compact XHTML output code
false no
param_entities_off
  • true save extended chars as they are
  • false save extended chars as html entities
true no
param_config_files_path directory containing XML configuration files; it could be an absolute ULR (e.g.: http://www.mysite.com/config/) or a path relativive to jxhtmledit.jar file folder; leave blank for default configuration files   yes
param_buttons_images_path directory containing buttons images; it could be an absolute ULR (e.g.: http://www.mysite.com/buttons/) or a path relativive to jxhtmledit.jar file folder; leave blank for defaults buttons   yes
param_images_path directory containing images that could be inserted on document; it could be an absolute ULR (e.g.: http://www.mysite.com/images/) or a path relativive to jxhtmledit.jar file folder   yes
param_images_list lista dei nomi di file delle immagini inseribili nel documento separati dal carattere ":"   yes

JavaScript API

JXHTMLEdit contains two public methods to get and set the HTML code from JavaScript call. These methods offers more compatibility for browser that do not support LiveConnect.

Open Source projects from the same author >>