#7570·formbricks

Cannot delete inserted table cell from survey editor

Author: urbalazsCreated Mar 23, 2026Updated Sep 23, 2026
Labelsbug

Issue Summary

If I copy-paste a table cell inside the survey editor, the table cell becomes unremovable and the text is narrow down inside the editor.

When I type the content manually, the editor looks fine:

Image

This is how the source of the editor is rendered:

xml
<div aria-labelledby="headline" class="editor-input" contenteditable="true" role="textbox" spellcheck="true" style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true">
  <p class="fb-editor-paragraph" dir="auto">
    <span data-lexical-text="true">This is a long text, that demonstrates how the survey editor is broken when inserting text from a table cell.</span>
  </p>
</div>

If I copy-paste the content from LibreOffice or Excel, an extra table is displayed around the editor and the text is displayed in a narrow column when I save the survey:

Image

This is how the source of the editor is rendered:

xml
<div aria-labelledby="headline" class="editor-input" contenteditable="true" role="textbox" spellcheck="true" style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true">
  <table dir="auto">
    <colgroup><col></colgroup>
    <tr>
      <td style="width: 75px;">
        <p class="fb-editor-paragraph" style="text-align: start;">
          <span data-lexical-text="true">This is a long text, that demonstrates how the survey editor is broken when inserting text from a table cell.</span>
       </p>
      </td>
    </tr>
  </table>
</div>

The table cell is outside of the editor, it is not possible to remove the table cell once it is pasted.

Expected Behavior

I should be able to delete any content from the editor.

Other information (incl. screenshots, Formbricks version, steps to reproduce,...)

How to reproduce this issue:

  1. Open your favorite spreadsheet software (LibreOffice or Excel).
  2. Type „This is a long text, that demonstrates how the survey editor is broken when inserting text from a table cell.” in cell A1.
  3. Create a survey from scratch.
  4. Click cell A1, copy it (Ctrl+C) and paste to survey editor (Ctrl+V).
  5. Save the survey as draft.
  6. Open the survey again for editing. There is a table cell in the editor body which narrows the text inside it.

Your Environment

Self-hosted Formbricks