Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Paste button fom CodeLib

Questions related to using nuBuilder Forte.
Post Reply
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Paste button fom CodeLib

Unread post 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.
Wbr, miasoft.
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Paste button fom CodeLib

Unread post by miasoft »

Sorry, I answer myself.
Does not work in my FireFox (v85.0, 32bit)! In another browses all works!
Last edited by miasoft on Fri Feb 05, 2021 8:04 am, edited 1 time in total.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Paste button fom CodeLib

Unread post by kev1n »

On which browser did you try it ?
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Paste button fom CodeLib

Unread post by miasoft »

kev1n wrote:On which browser did you try it ?
Opera, AvastSecureBrowser, Google. All are OK.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Paste button fom CodeLib

Unread post 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
Post Reply