Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360790

Summary: Add Clipboard Support to RAP
Product: [RT] RAP Reporter: Tobias Liefke <eclipse>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: chris, igor.novakovic, ivan, wian
Version: unspecified   
Target Milestone: 3.14 M1   
Hardware: All   
OS: All   
URL: https://git.eclipse.org/r/c/rap/org.eclipse.rap/+/165553
See Also: https://git.eclipse.org/r/c/rap/org.eclipse.rap/+/165553
https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=bc9e56f1b8345382e87cc8d2fece4683721d81bd
Whiteboard:

Description Tobias Liefke CLA 2011-10-13 06:40:59 EDT
It should be clear that a web application has only limited access to the system clipboard of the web client and must have no access to the system clipboard of the web server.

But it should be very easy to implement a clipboard in RAP that is connected to the user session and provides CnP support inside the borders of the application. That way I don't have to turn of copy/paste actions in existing plugins to make them available for RAP. And I would support a main use case of copy and paste - the duplication of entered user data inside of the application.

It would be nice to have access to the web client's system clipboard transparently, too (either only the text content or using browser plugins) - but I understand that such an implementation has to deal with the RAP request lifecycle which is, as far as I can see, not that easy and I don't think we should deal with that in this issue.
Comment 1 Ralf Sternberg CLA 2011-10-14 06:05:18 EDT
For me it sounds reasonable to start with a clipboard implementation that only stores contents in the session store but is not connected to the client's clipboard. For those clients that support clipboard access (native mobile clients?), an add-on could be created that synchronizes this clipboard implementation with the client's clipboard.

What do others think?
Comment 2 Chris Fairhall CLA 2011-12-13 16:47:24 EST
As long as there will continue to be native clipboard access for the Text widgets.
Comment 4 Ivan Furnadjiev CLA 2020-07-06 06:38:30 EDT
Only read/write plain text to the user clipboard is supported in "blink"-based browsers - Chrome, Opera, Edge Chrome. Firefox only supports setting the text to clipboard.