This example shows how to change the enter key behavior. The div markup mode allow to use div
tag instead of p
.
<!-- element -->
<textarea id="entry">...</textarea>
<!-- call -->
<script>
let app = Redactor('#entry', {
markup: 'div'
});
</script>