Hi ...
I need to change something in my project to allow copying text to clipboard? there any special permission??
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Copy text to clipboard
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Copy text to clipboard
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.
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.
- danicarla2
- Posts: 19
- Joined: Mon Oct 01, 2018 6:01 pm
- Location: Brazil
Re: Copy text to clipboard
