All demos ↓← All 93 demos

Enter Key Tag

Choose paragraph, div, or line-break behavior for the Enter key.

How it works

Rich Text Editor can be configured to define the behaviour of the ENTER KEY. You use <p>, <br /> or <div> tags when you press enter. In either mode <br> tags can be created by using shift+enter.

By default enter key inserts <div>.

Use <p> tags on enter keypress instead of <div>tags.
Use <br> tags on enter keypress instead of <div>tags.

Example code

{enterKeyTag : "div"}
{enterKeyTag : "p"}
{enterKeyTag : "br"}

Use this in your app

This demo runs the same editor you get for every framework. See how to add it to yours: