Rich text element: DOM reduction

Currently, the Rich text element generates the following code.

<div id="brxe-gcblom" class="brxe-text">
<p>Here goes your text … Select any part of your text to access the formatting toolbar.
</p>
</div>

But it would be great if it only contains p tag.

<p>Here goes your text … Select any part of your text to access the formatting toolbar.</p>
1 Like

How would you target styles then?

1 Like

How would you target styles then?

P tag. Like the basic text element.

Then if your rich text element contained more p tags it would look like:

<p id="brxe-gcblom" class="brxe-text">Here goes your text … Select any part of your text to access the formatting toolbar.</p>

<p id="brxe-xyz" class="brxe-text">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis, lacinia quis facilisis sed sapien. </p>

<p id="brxe-abc" class="brxe-text"> Mauris varius diam vitae arcu. Sed arcu lectus auctor vitae, consectetuer et venenatis eget velit.  </p>