Skip to main content
5 of 5
edited tags
jammykam
  • 13.9k
  • 2
  • 29
  • 74

Rich Text Editor - Apply CSS class around <tr> html tag

I have selected the complete row of the table, Then I have selected a class that changes the background color of the table row.

Class selection

The background color is not applying to the selected table row, because RTE added header class inside the table data cell.

Excepted

 <tr class="header">
        <td>&nbsp;test</td>
        <td>&nbsp;test</td>
        <td>&nbsp;tesy</td>
 </tr>

Result

    <tr>
        <td>&nbsp;t
        <div class="header">est</div>
        </td>
        <td>
        <div class="header">&nbsp;test</div>
        </td>
        <td>
        <div class="header">&nbsp;tesy</div>
        </td>
    </tr>

Is there any way to achieve the above-expected result in Sitecore RTE?