tag div instead of p to separate lines
See original GitHub issueIs there a property to change this?
I have this:
<p>enter</p>
<p>enter</p>
<p>enter</p>
And I want this:
<div>enter</div>
<div>enter</div>
<div>enter</div>
steps to reproduce
- Enter a word
- Tap enter
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Is it okay to use <div> as a line-breaking instead of <p> or <br>
My site is using <div</div> as a line-breaking paragraph on it content. ... <p> tags to old pages of your site, I think...
Read more >How do I prevent DIV tag starting a new line? - Stack Overflow
Save this answer. Show activity on this post. The div tag is a block element, causing that behavior. You should use a span...
Read more >How to prevent a div from breaking to the next line
Steps on how to prevent a div from breaking to the new line and keeping more than one div on a single line....
Read more >How to avoid a new line with tag? - GeeksforGeeks
Example 1: In this code, we have used the display attribute and set it to inline which will change the default behavior of...
Read more >Different ways to create a line break in HTML - STechies
For this, users can easily create a new line with the different tags in HTML, using be, div, p, pre, span tag.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Still no solution?
It actually does work, somewhat.
$('div.summerIsComing').summernote({ styleTags: ['p', 'div', 'blockquote', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'] });
However, I haven’t yet found how to set ‘div’ by default.