feat: handle UI_InsertFile postMessage from Collabora#2270
feat: handle UI_InsertFile postMessage from Collabora#2270JammingBen merged 1 commit intoopencloud-eu:mainfrom
Conversation
|
server-side: opencloud-eu/opencloud#2555 |
JammingBen
left a comment
There was a problem hiding this comment.
Code LGTM and works just fine, thanks!
Though I had to bump the Collabora version in our dev setup to v25.04.9.4.1 to make it work. I guess this feature is not available in older versions? If so, do you mind bumping the Collabora version in our docker-compose.yml file also with this?
Thanks!
Ah good catch! My setup uses Collabora Online build from sources but you are right: Action_CompareDocuments is will update the PR |
Add handler for Collabora's UI_InsertFile postMessage, which is sent when EnableInsertRemoteFile is true. Opens the OpenCloud file picker filtered by MIME types from the message, then sends back the selected file's download URL via the callback specified by Collabora (Action_CompareDocuments). Note: line 364, added the return after the UI_InsertGraphic handler for consistency with the other handlers. Bumped Collabora version in docker-compose.yml as Action_CompareDocuments was introduced only in version 25.04.9.1: https://sdk.collaboraonline.com/docs/postmessage_api.html Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
cb2b277 to
10e98fe
Compare
Add handler for Collabora's UI_InsertFile postMessage, which is sent
when EnableInsertRemoteFile is true. Opens the OpenCloud file picker
filtered by MIME types from the message, then sends back the selected
file's download URL via the callback specified by
Collabora (Action_CompareDocuments).
Note: line 364, added the return after the UI_InsertGraphic handler for
consistency with the other handlers.
Signed-off-by: Pedro Pinto Silva pedro.silva@collabora.com