Is it possible to copy selected data using KeyTable extension, without the html tags?
Is it possible to copy selected data using KeyTable extension, without the html tags?
hm123
Posts: 84Questions: 27Answers: 1
I use the Keytable extention (https://datatables.net/extensions/keytable/) for:
1-keyboard navigation
2-showing where the focus is on the table data
3-being able to copy from that one cell which is given focus
Yet it seems that inline html formatting tags are copied to the clipboard as well,
Is there anyway to make this copy work without those tags?
Test case: http://live.datatables.net/kimalile/1/
This discussion has been closed.
Replies
Hi @hm123 ,
Thanks for that test case, it helps to see the data. Yep, it can be done, see
keys.clipboardOrthogonal
. I used that example to modify your test case, see here. The HTML tweaking came from this SO thread.Cheers,
Colin
Yes this works beautifully
Thanks Colin