Copy To Clipboard

Is there a method to copy text to the clipboard in a webcore app (not electron)?

We'll add this to TWebClipboard in the next update:

  TClipboard = class(TComponent)
  public
    procedure CopyToClipboard(const AValue: string);
  end;

procedure TClipboard.CopyToClipboard(const AValue: string);
begin
  asm
    window.navigator.clipboard.writeText(AValue);
  end;
end;
1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.