Issue #394đź’¬ AnsweredOpened October 9, 2017by daniel-farina1 reactions

Text: New div is created every time I hit enter instead of creating a </br>

Quick answerby artf❤ 1

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

Read full answer below ↓

Question

Hi @artf Is there a reason why when inserting text a new div is created for every break instead of a standard </br> 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)

daniel-farina• October 9, 2017

Thank you for the update and information. I'll look into it.

lock[bot]• September 18, 2019

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.