The Ephox EditLive! ASP.NET Server Control has been designed to allow easy integration of the WYSIWYG HTML editing capabilities of EditLive! into ASP.NET Web Forms. The EditLive! ASP.NET Server Control has been designed to allow for seamless interaction between the ASP.NET architecture and the EditLive! applet. Once the required files have been included in an ASP.NET Web project EditLive! can be easily included in any of your ASP.NET Web Forms.
When using the EditLive! ASP.NET Server Control, there are several steps that must be followed. The server control file, EditLiveJavaControl.dll, must be installed in the relevant project. In addition to this, the EditLive! source files and libraries must be deployed on the same Web server as the relevant project. Finally, to provide IntelliSense (popup context menu) support for the EditLive! Server Control in the HTML view of the Web Forms editor, an XML schema file must be placed in a specific directory.
The EditLive! Server Control may be added to the Microsoft Visual Studio .NET Toolbox to allow developers to create an instance of the EditLive! Server Control on a page via the drag-and-drop mechanism. To use the EditLive! Server Control in this manner the following steps must be followed:
When using the EditLive! Server Control via the Microsoft Visual Studio .NET Toolbox, the relevant reference will automatically be added to the project when the first instance of the EditLive! Server Control is created.
If the EditLive! Server Control cannot be made available through the use of the Microsoft Visual Studio .NET Toolbox, or you do not wish to make it available, then a reference to it can be added directly to the project. To use the EditLive! Server Control in this manner the following steps must be followed:
The EditLive! Server Control is now available to reference from the project. Instances of the control can now be created using the tag associated with it.
Installing the EditLive! for Java IntelliSense XML Schema
In addition to including the EditLiveJavaControl.dll file in your ASP.NET project, either through the ASP.NET Toolbox or a project reference, the EditLive! source files and libraries must be present on the same Web server as the relevant project. It is recommended that, in order to ensure that these files are present on the same Web server as the relevant project, they be added to the project itself. These files can be found within the redistributables/editlivejava directory and its subdirectories.
As the Microsoft Visual Studio .NET IDE does not allow directories and their contents to be recursively added to a project, the following method describes a way to easily add the EditLive! source files and libraries to your .NET Web Project:
If the Show All Files option is already selected before performing this step it may have to be unselected and then reselected.
As EditLive! is an HTML editor, it will need to be able to edit HTML and send HTML text back to the server. This means that the .NET request validation functionality will need to be disabled through setting the property validateRequest="false" in the page through the Page directive:
<%@ Page validateRequest="false" ...%>
In order to use multiple instances of EditLive!, the "AppletName" of each control will need to be initialized in the Page_Load event. Each applet name should be set to a unique value, which can then be used to access content in the postbacks. A useful value for the applet name is the name of the control.