Community
Participate
Working Groups
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.
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?
As long as there will continue to be native clipboard access for the Text widgets.
Gerrit change https://git.eclipse.org/r/c/rap/org.eclipse.rap/+/165553 was merged to [master]. Commit: http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=bc9e56f1b8345382e87cc8d2fece4683721d81bd
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.