Ephox EditLive! for Java allows for the easy editing of HTML content by users. In some circumstances, however, content is not purely HTML and may contain custom tags or tags which are not defined in HTML. Examples of such custom tags include XML and Java Server Pages (JSP) tags. EditLive! for Java recognises the usage of such tags within a document, parses them and renders them so that the user is aware of their existence.
EditLive! for Java identifies custom tags within HTML content placed in EditLive! for Java. In the design view of EditLive! for Java custom tags are represented by an image of a yellow rectangle within which the tag name is displayed. Users can edit the custom tag by right clicking on the tag and selecting "Edit Tag...". Note that it is not possible to add extra HTML before or after the custom tag using this method.
When loading custom tags of the format <custom>tag body</custom> (i.e. those tags with a body) into EditLive! for Java both the start and end tags will be recognised by EditLive! for Java as custom tags and displayed as such. The body of the tag, in this case tag body, will be placed between the two custom tag representations and the user will be able to edit this content as they would any other content within EditLive! for Java. <SCRIPT> tags are an exception to this. These are displayed as a single "script" custom tag in EditLive! for Java and the user must specifically edit, via the shortcut menu, the tag to make changes to the script.
EditLive! for Java supports any custom tag that is correctly formatted. For instance the following tags are supported:
<custom>
<custom tag="My Tag">
<custom tag>
<custom/>
</custom>
<% asp script %>
<? php script ?>
<script language="JavaScript">JavaScript</script>
whereas the following tags will not work correctly:
<Unclosed tag
<? Incorrectly closed PHP >
<% Incorrectly closed ASP >
<script language="JavaScript">Unclosed JavaScript
Notice that all of these unsupported tags are either unclosed or incorrectly closed. Ensuring that all tags are correctly closed will avoid such problems.
Custom tags can be moved in the document just like any other element including cutting, copying, pasting and deleting them. Users can also edit the custom tag by right clicking on the tag and selecting "Edit Tag..." from the shortcut menu if it is present. EditLive! for Java maintains the case of custom tags throughout all operations. If EditLive! for Java is set to indent HTML then each line within a custom tag will be indented to the same level, however, if EditLive! for Java is set to not indent HTML then the original indentation of the custom tag will be maintained.
EditLive! for Java provides support for editing documents with custom tags in them as well as allowing the user to edit them and move them around in the document.
Copyright © 2001-2004 Ephox Corporation. All Rights Reserved.