Loading

HTML Table Behaviour with Input Rich Text Field

Veröffentlichungsdatum: Oct 22, 2024
Beschreibung

If a table is populated in a rich text field, the HTML code that gets generated would look like the following:
 

<table class="ql-table-blob" border="0" style="width: 96pt;" width="128">
   <colgroup>
      <col style="width: 48pt;" width="64">
   </colgroup>
   <tbody>
      <tr style="height: 14.4pt;" height="19">
         <td style="height: 14.4pt; width: 48pt;" width="64" height="19" class="xl65" rowspan="1" colspan="1">id</td>
         <td style="width: 48pt;" width="64" class="xl65" rowspan="1" colspan="1">Name</td>
      </tr>
      <tr style="height: 14.4pt;" height="19">
         <td style="height: 14.4pt;" height="19" class="xl65" rowspan="1" colspan="1" align="right">750141</td>
         <td style="" class="xl65" rowspan="1" colspan="1">Lohit.B</td>
      </tr>
   </tbody>
</table>


This table could be populated by several methods such as an email template choice, custom component/code, or simply by pasting a copied table.

If you try to remove any character from the table, the entire table gets removed. 

Lösung

This is considered to be working as designed and is a noted limitation in our documentation.  There are several tags which are not supported for editing in a rich text field (inputRichText).
 

Doc stating unsupported feature: https://developer.salesforce.com/docs/component-library/bundle/lightning-input-rich-text/documentation

Quote: "The table and header formats support pasted content only".

Explanation: Paste/population is allowed. Editing is not allowed.



 

Zusätzliche Ressourcen

Vote on the Salesforce Idea - Rich Text Editor Should support Table Creation and Editing.

Nummer des Knowledge-Artikels

000380691

 
Laden
Salesforce Help | Article