Replies: 4 comments 4 replies
-
This is a JavaScript error, which means the programmatic set/get of the clipboard with JavaScript failed. Please note that this feature requires security context (HTTPS) or manually granted permission. Both JavaScript functions, used by RAP are supported in Safari since version 13.1. See: [1] https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText |
Beta Was this translation helpful? Give feedback.
-
The problem is not in your code. Are you running the RAP application over HTTPS? If you run it locally (localhost), did you allow the copy/paste permission in Safari? |
Beta Was this translation helpful? Give feedback.
-
According to this article [1], access to the clipboard permission is not possible in Safari and programmatic clipboard access (without user interaction) is also still not possible. [1] https://stackoverflow.com/questions/73077159/safari-clipboard-read-permission |
Beta Was this translation helpful? Give feedback.
-
By using a BUTTON to interact with the clipboard is probably ok, because it's a "user interaction". In RAP we don't have such a button on the client-side and everything is done with JavaScript WITHOUT "user interaction" driven by the server-side. That's why a specific permission is needed in other browsers. In Safari you don't have access to such permission. |
Beta Was this translation helpful? Give feedback.
-
Hi developers
I know that the copy-paste function is available for Safari browser but not I have exception (org.eclipse.swt.SWTError: Cannot set data in clipboard) Could you add this function for RAP?
Best regards
Beta Was this translation helpful? Give feedback.
All reactions