Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting multiple lines/blocks into tables #116

Open
kanejamison opened this issue Jan 4, 2023 · 1 comment
Open

Pasting multiple lines/blocks into tables #116

kanejamison opened this issue Jan 4, 2023 · 1 comment

Comments

@kanejamison
Copy link

I'm going to call this a feature request, but some of our users have described the current table paste formatting as a bug.

Current Handling of Pasting Into Tables:
Right now if the user pastes multiple lines of text into a table cell, the content gets dropped underneath the entire table:
table-paste-multiple-lines

(This is accurate as of EditorJS 2.26.4 and Table 2.2)

Ideally we would change how this is handled in one of two ways:

1. Inline-Table Style Paste
The current Notion and Google Docs handling would be if those line breaks were kept and the text was pasted into a single cell. This is probably ideal since it matches what users would expect from similar editors:

google-docs-multiple line paste
Google Docs example

notion-table-paste
Notion example

2. Spreadsheet Style Paste
The alternative would be the spreadsheet style paste, where each line break would trigger a paste into a new row (and create the new row if needed). This is similar to how Google Sheets or Excel would handle the paste:

google-sheets-paste

I think the benefit to this approach is that users can still use "Shift + Paste" to keep the content pasted into a single cell if they want to, so they have a greater range of results depending on how they want to paste the content into the cells.

@Thimows
Copy link

Thimows commented Apr 12, 2024

My users reported the same issue as a bug. Hopefully this can be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants