Examples

BBCode output

This sample shows how to configure Rich Text Editor to output BBCode format instead of HTML. BBCode syntax is commonly used by forums and comment systems.

Result BBCode:

Demo Code:

<%
     Dim rte
     Set rte=new RichTextEditor
     rte.Name="Editor1"
     rte.MvcInit()
%>

<textarea>
   <%
     If Len(Request.Form("Editor1"))>0 Then
     Response.Write(rte.BBCode)
     End If
   %>
</textarea>