The Ephox Tiny 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.
- IIS 6.0 or 7.0 (for deployment)
- .NET framework 3.0, 3.5 or 4.0
- Visual Studio 2005 or later (for development)
- EditLive! 8.1 or above.
Installing the EditLive! ASP.NET Server Control
- In the Microsoft Visual Studio .NET IDE, select the Tools > Customize Toolbox... menu item.
- Select the .NET Framework Components tab of the Customize Toolbox dialog.
- Click Browse...
- Browse to the location of the EditLiveJavaControl.dll file. This file can be found in the EditLiveControl_INSTALL/webfolder/aspnet/servercontrol/ directory, where EditLiveControl_INSTALL represents the location you installed the control to.
- With the EditLiveJavaControl.dll file selected, click Open.
- Ensure that the EditLiveJava control is now available in the list of .NET Framework Components and that the box next to the name of the control is checked.
- Click OK.
- The EditLive! Server Control should now be available as part of the Microsoft Visual Studio .NET Toolbox.
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.
Other Files Required to Use EditLive! in an ASP.NET Web Application
- Copy the redistributables directory and all its subdirectories, which contain the EditLive! for Java source files and libraries, to the relevant Web project directory so that the redistributables directory is a sub-directory within the Web project.
- Open the Solution Explorer window by selecting the View > Solution Explorer menu item.
Once the Solution Explorer window is open select the Project > Show All Filesmenu item to reveal all the files within the Web project's directories.
If the Show All Files option is already selected before performing this step it may have to be unselected and then reselected.
- In the Solution Explorer, select the root directory for the EditLive! source files and libraries which have not yet been included in the project (files which are not included are represented as uncolored icons, as above). In the example above the relevant directory is the redistributables directory.
- With the relevant root directory selected (in the above example, the redistributables directory), select the Project > Include In Project menu item.
- The Solution Explorer window should now have colored representations of the EditLive! source files and libraries. It should look similar to the following figure.
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:
By default ASP.NET forms cannot post values containing HTML. In order to successfully post EditLive!'s content, you will need to ensure the page directive contains the validateRequest="false"..
In ASP.NET 4.0, you also need to add the following to your web.config, in the <system.web> section:
<httpRuntime requestValidationMode="2.0" />