#Copy string to Clipboard on client
I'm trying to build a button that automatically saves a dashboard string to the the clipboard of the client.
That means that the client with an open dashboard should be able, to get the string into his clippoard indipendent of running node-red on his device.
My problem is that all my solutions only write to the clipboard of the device where node-red is running.
What I tried:
01 node-red-contrib-clipboard
Unfortunately, just writes from host and client to my Windows PC where node-red is running.
02 npm module clipboardy
Unfortunately, just writes from host and client to my Windows PC where node-red is running.
const clipboardy = global.get('clipModule');
let id = msg.payload.title.replace('<b>', '').replace('</b>', '');
clipboardy.writeSync(id);
return msg;
03 html template
msg.payload = '<script>navigator.clipboard.writeText("' + msg.payload +'")</script>';
Unfortunately, just writes from host to my Windows PC where node-red is running.
Does anybody have a solution to this problem?
Thanks in advance!