Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Pasting multiple lines/blocks into tables

Aperta
#116 1 commento 8 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
32/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

La issue non indica file sorgente, test o punti di ingresso. Riproduci il comportamento in Editor.js Table 2.2 usando contenuto multilinea dagli appunti, quindi determina se il comportamento previsto è l’incollamento in una tabella inline o la creazione di righe in stile foglio di calcolo; il lavoro è completato quando il comportamento selezionato funziona senza perdere contenuto sotto la tabella.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
146
Fork
162
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di editor-js/table

Tutte le issue di editor-js/table

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.