How to copy the selected text to the clipboard using firefox?

0

I need, after selecting a text on any web page, that I copy this text, sending the text to another function, which will post later.

The problem is that I need to remove the selection after copying the text, so the "getselection" method, removing the range, returns empty.

The previous solution was to use execcomand and send it to the clipboard and return the text. But this only works on Chrome, not on Firefox which is my current focus. Any suggestions or help?

    
asked by anonymous 12.07.2016 / 19:34

0 answers