Page 1 of 1

Paste button fom CodeLib

Posted: Fri Feb 05, 2021 7:49 am
by miasoft
I tried PasteBtn from CodeLib and get error on btn click:
Uncaught TypeError: navigator.clipboard.readText is not a function
pasteText http://localhost:8080/cc/index.php line 2 > injectedScript:18
onclick http://localhost:8080/cc/index.php:1
What is wrong?
p.s. Simple Ctrl-C / Ctrl-V works.

Re: Paste button fom CodeLib

Posted: Fri Feb 05, 2021 7:58 am
by miasoft
Sorry, I answer myself.
Does not work in my FireFox (v85.0, 32bit)! In another browses all works!

Re: Paste button fom CodeLib

Posted: Fri Feb 05, 2021 7:59 am
by kev1n
On which browser did you try it ?

Re: Paste button fom CodeLib

Posted: Fri Feb 05, 2021 8:10 am
by miasoft
kev1n wrote:On which browser did you try it ?
Opera, AvastSecureBrowser, Google. All are OK.

Re: Paste button fom CodeLib

Posted: Fri Feb 05, 2021 8:13 am
by kev1n
miasoft wrote:Sorry, I answer myself.
Does not work in my FireFox (v85.0, 32bit)! In another browses all works!
Yes, that's right. Firefox only supports reading the clipboard in browser extensions:
https://docs.w3cub.com/dom/clipboard/readtext