question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tag div instead of p to separate lines

See original GitHub issue

Is 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

  1. Enter a word
  2. Tap enter

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
galexthcommented, Jun 8, 2016

Still no solution?

1reaction
roselancommented, Apr 4, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found