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.

Good way to use <div> instead of <p>

See original GitHub issue

Hi there,

First off, we love Trumbowyg and are using it in a large project. We were wondering how easy it would be to replace Trumbowyg’s default of using <p> tags with <div>. The reason is we are using trumbowyg as a mail client, and the default functionality when hitting the enter key is to create blocks of text within a <div> tag.

Any insight on how to do this would be greatly appreciated. Thanks again for this awesome plugin!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

aswzencommented, Jan 23, 2019

for current version use t.semanticTag('div', false); or just comment that line

Alex-Dcommented, Jan 24, 2019


Now you can customize the semantic behaviour. Check out the doc here:

Read more comments on GitHub >

github_iconTop Results From Across the Web

When should I use <div> instead of <p>? : r/HTML - Reddit
In my opinion div is better than p most of the time, because you can add more divs and elements while having text...
Read more >
Div instead of <p> - HTML - Codecademy Forums
<div></div> and <p></p> are both block level elements with one exception… dimensions and margins. DIV has no predefined dimensions and no margin ...
Read more >
What is the difference between <p> and <div>? - Stack Overflow
If you need a generic container purely for layout purposes then use a <div> . If you need an element to describe a...
Read more >
What is the advantage of <div> over <p>? - Quora
For example it's better to use an element like article or section instead of a plain div when the content you're trying to...
Read more >
Semantic HTML Guide – 10 Alternatives to Using divs
Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found