KTML 4 LITE API Documentation for ASP .NET

KtmlLite Class

KTML is a browser-based WYSIWYG HTML editor that offers easy content formatting, advanced table and image manipulation features and a live property editor to ease your work. It supports most platforms and configurations, providing the user with advanced text and paragraph formatting capabilities, as well as CSS support and easy HTML tag selection.
KTML is implemented as an ASP.NET Server Control that has the features of a standard TextBox control but provides a richer interface in browser.

For a list of all members of this type, see KtmlLite Members.

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         System.Web.UI.WebControls.TextBox
            InterAKT.WebControls.KtmlLite

public class KtmlLite : TextBox

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

There are two ways of using this control:

Mode Description
Standard mode The controls is added to a web form and the property Text is used to set or retrive the edited text.
Pluginable mode You have a web form that uses a TextBox, HtmlInputText or HtmlTextArea control to edit the content. You don't want to change anything to the application's logic (that might save/retrive the data to/from a database) but you want to use the rich interface of KTML to edit the content. Just set the property ControlToBindTo to a the instance of KTML on that web form to transform the <input type="text"> or <textarea> that is renderend in browser to the WYSIWYG HTML editor. Your original input text or textarea will be hidden and you'll be able to use KTML without changing anything to the classes (or the compiled web assembly).

Example

The following shows a sample declaration for a Ktml control in standard mode:

<%@ Page Language="C#|VB">
<%@ Register Assembly="InterAKT.KTML4LITE" Namespace="InterAKT.WebControls" TagPrefix="iakt" %>
<html>
<body>
 <form runat="server">
    <iakt:KtmlLite ID="MyEditor" runat="server"></iakt:KtmlLite>
 </form>
</body>
</html>
The following shows a sample declaration for a Ktml control in pluginable mode:
<%@ Page Language="C#|VB">
<%@ Register Assembly="InterAKT.KTML4LITE" Namespace="InterAKT.WebControls" TagPrefix="iakt" %>
<html>
<body>
 <form runat="server">
    <asp:TextBox ID="TextBox1" runat="server"><asp:TextBox>
    <iakt:KtmlLite ID="MyEditor" runat="server" ControlToBindTo="TextBox1"></iakt:KtmlLite>
 </form>
</body>
</html>

Requirements

Namespace: InterAKT.WebControls

Assembly: InterAKT.KTML4LITE (in InterAKT.KTML4LITE.dll)

See Also

KtmlLite Members | InterAKT.WebControls Namespace