Loading

HTML Table Behavior in Salesforce Lightning Input Rich Text Field — Known Limitation

Date de publication: Jul 21, 2026
Description

This article explains a known limitation of the Salesforce Lightning Input Rich Text field (lightning-input-rich-text component) where tables pasted into the field cannot be edited once inserted. This behavior is working as designed.
When a table is pasted into a Salesforce Lightning Input Rich Text field, the system generates HTML markup that uses the ql-table-blob class, including <table>, <colgroup>, <tbody>, <tr>, and <td> tags with inline style attributes. Because these HTML tags are not supported for editing within the inputRichText component, any attempt to modify or delete characters from within the pasted table causes the entire table to be removed.

 

<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 behavior can be triggered by several methods: an email template, a custom component or code, or simply by pasting a copied table from an external source such as a spreadsheet.

Résolution

Cause and Explanation

This behavior is working as designed and is a documented limitation of the Salesforce Lightning inputRichText component. The component supports pasting tables from external sources, but does not support in-editor table creation or editing.
Per the lightning-input-rich-text documentation: "The table and header formats support pasted content only."
This means pasting or populating a table is allowed, but editing the table after it has been inserted is not supported.

Workaround

If you need to modify a table that has been pasted into the Input Rich Text field, remove the entire table first, update the source table in its original format (for example, in a spreadsheet), and then paste the revised version into the field.

Numéro d’article de la base de connaissances

000380691

 
Chargement
Salesforce Help | Article