Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Workaround: Make any cell contents in Workspace copy-able

Avatar

Level 2

30-01-2018

I find it super annoying that text in individual workspace cells is not selectable or copyable. This is especially bad when the cells contain GUIDs or other long things.

To solve this, I made a little Bookmarklet to work around this:

javascript:(function(window,document)%7Bfunction%20copyToClipboard(txt)%7Bvar%20textArea,copy;function%20createTextArea(text)%7BtextArea=document.createElement('textArea');textArea.value=text;document.body.appendChild(textArea)%7D%20function%20copyToClipboard()%7Bdocument.execCommand('copy');document.body.removeChild(textArea)%7D%20createTextArea(txt);textArea.select();copyToClipboard()%7D%20function%20listener(e)%7BcopyToClipboard(e.target.textContent);e.preventDefault();document.body.removeEventListener('click',listener,!0)%7D;document.body.addEventListener('click',listener,!0)%7D)(window,document)

To use this, create a bookmark in your browser's favorite bar and give it the above line of javascript as URL. After clicking on that bookmark, just click on the "unselectable" cell and voilà, the content is now as text in your clipboard.

I hope others find this useful, too. (Oh, and tested only in Safari, Chrome and Firefox on MacOS X).

1 Comment