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:
This is how the source of the editor is rendered:
<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:
This is how the source of the editor is rendered:
<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:
- Open your favorite spreadsheet software (LibreOffice or Excel).
- Type „This is a long text, that demonstrates how the survey editor is broken when inserting text from a table cell.” in cell A1.
- Create a survey from scratch.
- Click cell A1, copy it (Ctrl+C) and paste to survey editor (Ctrl+V).
- Save the survey as draft.
- 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
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:
This is how the source of the editor is rendered:
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:
This is how the source of the editor is rendered:
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:
Your Environment
Self-hosted Formbricks