CuteEditor for ASP 6.6 Class Library

Editor.BreakElement Property

Specify the behavior when the "enter" key is pressed in the editor The default is Div.


Example Code

      <%
           Dim editor
           Set editor = New CuteEditor
           editor.ID = "Editor1"
           'Specify the behavior when the "enter" key is pressed in the editor.
           editor.BreakElement = "Br"
           editor.Text = "Hello World"
           editor.Draw()
      %>

Members

Member Name Description
Div use <div > tags on enter keypress instead of <p></p>tags
Br use <br> tags on enter keypress instead of <p></p>tags
P Enter key inserts new paragraph, Ctrl+Enter inserts <br>

See Also

Editor Class | CuteEditor Namespace