The user would like to have the grid lines copied with the grid data when he copies from the web page. Is that possible ?
currently the result of copying is something like:
name subject
lolo math
fofo history
what I want to have is:
| name | subject |
---------------
| lolo | math |
---------------
| fofo | history |
I googled that but I couldn't find a good solution for that, and I'm not experienced in front-end tricks.
My solution was a mix of the solutions above use Clipboard.js and parse the copied text:
I'm still writing
addTableLines
because thesplit
is not detecting the new lines.