Text: New div is created every time I hit enter instead of creating a </br>
Question
Hi @artf
Is there a reason why when inserting text a new div is created for every break instead of a standard </br>

<div class="c4840">Insert your text here. I hit enter
<div data-highlightable="1">a new div is created
</div>
<div data-highlightable="1">I hit enter again
</div>
</div>
Is it possible to disable this behavior and make a </br> instead.
I know this works if I hit the shift + enter but I would like for it to be the default option.
Thank you
Answers (3)
Hi @daniel-farina this is a default behavior in WebKit browsers, here you can find current solutions https://stackoverflow.com/questions/18552336/prevent-contenteditable-adding-div-on-enter-chrome
I actually started rewriting the current RTE and will take into account this issue
Thank you for the update and information. I'll look into it.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #508
If you add a checkbox trait, it does not render correctly in the settings panel unless there is also a text trait
A text trait and a checkbox: Results in: If checkbox only: The checkbox overlaps the label:
Issue #1434
Toolbar Hide text element
@artf Please check you demo page text is hiding under the toolbar. how can we update the toolbar position?
Issue #392
Define selected class.
Hello @artf , Is there a way to automatically select the class that is created on elements with custom styles. I'm currently trying to dyna...
Issue #456
Combobox cross-browser issues
I found that the combobox has different styles on different browsers. Firefox 56.0.2 (64-bits): Chrome: Safari: I think the problem is with...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.