Issue #2353💬 AnsweredOpened October 24, 2019by logeshkrishna02 reactions

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

Quick answerby logeshkrishna01

@pouyamiralayi, Are you saying that you wont form the new div when eneter is clicked, but when you try to save it, it would consider that space or next line as new div

Read full answer below ↓

Question

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick SEARCH first, to see if someone else didn't open the same issueDON'T ASK to create examples/code for you, read DOCS and APIs first, then you can post what you have tried (we'd like to see your code) and what you're unable to achieveAll relative statements/questions have to be fil...

Answers (3)

logeshkrishna0October 25, 2019

@pouyamiralayi, Are you saying that you wont form the new div when eneter is clicked, but when you try to save it, it would consider that space or next line as new div

logeshkrishna0October 25, 2019

@pouyamiralayi It also happen in the new version have check using the inspect element it add a div each time when click enter in text block

logeshkrishna0October 24, 2019

Is there a reason why when inserting text a new div is created for every break instead of a standard <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 th...

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.