Skip to content

Example of Enter Key Configuration in ASP.NET MVC Rich Text Editor Control

This sample demonstrates the API usage to customize the enter key and shift + enter key action in the Rich Text Editor content. Code view represents the current rich text editor value when typing or pressing the enter key or shift + enter key.





                    

In these demos, ensuring the API’s behaviors by doing

  • Change the value of the EnterKey drop down to customize the action when the enter key is pressed.
  • Change the value of the ShiftEnterKey drop down to customize the action when shift + enter is pressed.

The possible values are P (a paragraph), DIV (a div) and BR (a line break). The code view is the editor’s HTML, shown as it changes.