+1 vote
ago by
There is an html table with cells from the input. Is it possible to use js to make it so that by copying table data from excel/word, you can paste them identically into table from inputs, so that data are separated by columns and rows, and not pasted into one input? If you can, please describe in more detail, I don't understand how to do it)
ago by
Insert in the div with contenteditable, the html will be inserted, then parse it and move it where you want.

2 Answers

0 votes
ago by
 
Best answer
You can.

You need to have a separate multiline textarea type instance on the page. You copy the table into it, and it appears as a plain text with separators. Then you need to use script to parse this text and insert it into separate inputs according to the logic of the page.

This can also be done as a browser extension, or even as a user-script that goes into the console. It's a matter of taste if you know js.
0 votes
ago by
js-xlsx to help
...