It appears that Action Text’s Trix editor creates paragraphs by inserting <br>
s, not by wrapping text with <p>
. So to add an inter-paragraph gap, to my knowledge I must add styling directly to these <br>
s, but the MDN docs says that is not recommended:
Note : Do not use
<br>
to create margins between paragraphs; wrap them in<p>
elements and use the CSSmargin
property to control their size.
Unfortunately, even though just adding br { margin-bottom: 10px; }
does work in Firefox (and probably others, didn’t check yet), it appears this is needed in Safari:
br {
margin-bottom: 10px;
content: "";
display: block;
}
Could anyone familiar with Action Text or Trix comment on this choice of <br>
and if we could/should consider using <p>
instead?