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

copy big string and when paste, it create 2 lines #183

Open
c0ncentus opened this issue Nov 10, 2021 · 2 comments
Open

copy big string and when paste, it create 2 lines #183

c0ncentus opened this issue Nov 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@c0ncentus
Copy link

c0ncentus commented Nov 10, 2021

input

Fondée en 1845, la bibliothèque de l’Académie royale de Belgique abrite près d'un million de documents. Il s’agit du fonds documentaire le plus complet sur l’histoire nationale, régionale et locale de Belgique constitué de 45.000 livres et périodiques, de 77.000 cartes postales, de 5.000 cartes porcelaines et de centaines de cartes géographiques et autres plans Popp. Une partie importante de ces collections est déjà référencée sur notre catalogue en ligne. La bibliothèque participe également à des programmes d’échanges inter-bibliothèques : ce qui accroit considérablement l’offre qu’elle peut proposer.
Une politique de numérisation des publications propres de l’Académie est également en cours. Ainsi les notices de la biographie nationale, la Nouvelle Biographie nationale, des Annuaires et une part significative des Mémoires sont d’ores et déjà consultable en ligne sur le site Internet de l’institution. En 2020, l’ensemble de nos publications numérisées sera accessible sur le site du portail Persée, partenaire de l’Académie.

output

when i copy and past on a cell, then it create 2 separate string from the input and fill 2 cells with it.

However i can add some text next to the end of A6 manually ...
image
yes i update css for more suitable render data but I do not expect this.

What i expect :

when i copy 1 cell, when paste it's change only 1 cell.
if you want improove ui experience

what I suggest this :

put parameter for showing more than x character like
image
and showing/add when you click on "..."

@c0ncentus c0ncentus changed the title big string create 2 lines copy big string and paste create 2 lines Nov 10, 2021
@c0ncentus c0ncentus changed the title copy big string and paste create 2 lines copy big string and when paste, it create 2 lines Nov 10, 2021
galeamark added a commit to galeamark/react-spreadsheet that referenced this issue Nov 16, 2021
@galeamark
Copy link

Hi, I believe the author made reference to Google Sheets as the baseline for paste functionality in issue 130.

With that in mind, pasting the input above on a Sheet would result in the text being split in multiple cells, making this reported issue expected behaviour(?).

However on Sheets, you can add multiple lines by inputting text as function input. So in order to replicate this I added a custom editor that uses textarea instead of inputs, and two viewers; adding ellipsis(column B below), or splitting multiline (Column C). I also pasted the full text in C3 such that it does not split across multiple rows/cells.
image

@iddan
Copy link
Owner

iddan commented Dec 17, 2021

This is really cool @galeamark. PRs are welcome to fix this behaviour.

@iddan iddan added the enhancement New feature or request label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants