Good way to use <div> instead of <p>
See original GitHub issueHi 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:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top 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 >
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
for current version use
t.semanticTag('div', false);
or just comment that lineHey!
Now you can customize the semantic behaviour. Check out the doc here: https://alex-d.github.io/Trumbowyg/documentation/#semantic