Page 1 of 1

Copy text to clipboard

Posted: Tue Aug 31, 2021 6:31 pm
by danicarla2
Hi ...

I need to change something in my project to allow copying text to clipboard? there any special permission??

Re: Copy text to clipboard

Posted: Tue Aug 31, 2021 7:42 pm
by salvadordf
Hi,

If you mean that your application needs to support the clipboard API from JavaScript then I'm afraid normal CEF browsers don't support that feature.

I just did a quick test loading this page with a normal CEF browser and then with the TinyBrowser2 demo which uses the experimental "Chrome Runtime" mode :
https://googlechrome.github.io/samples/async-clipboard/

The normal CEF browser can't use the copy and paste buttons in that page but TinyBrowser2 can! :)

The bad news is that the Chrome Runtime mode is still in experimental state. Some people managed to embed a browser in that mode in the official CEF forum but I haven't tried to embed them in a Delphi form and I'm not sure if it would be stable.

Re: Copy text to clipboard

Posted: Wed Sep 01, 2021 11:44 am
by danicarla2
:cry: tanks!!