Skip to main content
edited tags
Link
jammykam
  • 13.9k
  • 2
  • 29
  • 74
beautification
Source Link

Rich Text Editor - Sitecore9.2 - Apply CssCSS class around <tr> html tag

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

Class selection

BackgroundThe 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-expected result in Sitecore RTESitecore RTE?

Rich Text Editor - Sitecore9.2 - Apply Css class around <tr> html tag

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

Class selection

Background color is not applying to the selected table row, because RTE added header class inside 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 above expected result in Sitecore RTE?

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?

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

Class selection

Background color is not applying to the selected table row, because RTE added header class inside 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 above expected result in Sitecore RTE?

I select complete row of the table, Then select a class which changes the background color of the table row.

Class selection

Background color is not applying to the selected table row, because RTE added header class inside 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 above expected result in Sitecore RTE?

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

Class selection

Background color is not applying to the selected table row, because RTE added header class inside 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 above expected result in Sitecore RTE?

edited title
Source Link
Loading
Source Link
Loading