Copy cells inside grid (or anywhere) as plain text
This commit is contained in:
parent
2bcb38bea6
commit
b7ae4a1708
@ -37,6 +37,15 @@ var wait_for_element = function(search, start, fn, disconnect) {
|
||||
// WHEN PAGE LOADS
|
||||
//
|
||||
var apex_page_loaded = function() {
|
||||
//
|
||||
// COPY TEXT FROM GRID, WELL COPY EVERYTHING JUST A TEXT
|
||||
//
|
||||
document.addEventListener('copy', (event) => {
|
||||
//console.log('ORIGINAL:', document.getSelection());
|
||||
event.clipboardData.setData('text/plain', $(document.activeElement)[0].innerText || window.getSelection());
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
//
|
||||
// SHOW NOTIFICATIONS
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user