Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Cannot delete inserted table cell from survey editor #7570

Copy link
Copy link
@urbalazs

Description

@urbalazs
Issue body actions

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:

<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:

<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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.