The VCL/FMX way of copying text to the clipboard doesn't work in TMS Web Core.
How can I copy text (Strings) to the clipboard in a Delphi TMS Web Core Website?
The VCL/FMX way of copying text to the clipboard doesn't work in TMS Web Core.
How can I copy text (Strings) to the clipboard in a Delphi TMS Web Core Website?
There are multiple ways to copy text to the clipboard in TMS Web Core:
1. TWebClipboard (Non-Visual Component)
Add a
TWebClipboard
component to your form and then you can copy text to it by running:2. TWebClipboard Custom Method
You can make your own procedure that creates and uses the
TWebClipboard
component from theWEBLib.Clipboard
unit:3. JavaScript function
You can make a Delphi function that uses JavaScript to copy text to the clipboard: