Skip to content

Collabora: Insert images from cloud #704

Closed

Description

@kulmann

Initial Checklist

  • I understand this is a user story and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

User Story

As a user writing a document in Collabora, I want to insert images from my cloud storage so that I don't need to download them to my harddisk first.

User Value

Deep integration of Collabora, ease of use

Acceptance Criteria

  • Insert menu in Collabora: Image is a dropdown with options From device and From cloud
  • From device behaves exactly like the Image button before (select file from local disk)
  • inserting an image from the cloud opens a modal with the web embed mode, giving the possibility to select an image from the personal space, a share or any project space
  • images which were shared via secure view are not selectable
  • same file types are allowed as with selection from the device (probably something like jpg, png, gif, maybe more)
  • image content gets copied into the document at the current cursor position (no linking whatsoever)
Image

Activity

  1. moved this from Qualification to Backlog in OpenCloud Team Boardon May 19, 2025
  2. kulmann commented on Jun 4, 2025

    @kulmann
    MemberAuthor

    Technical note: see post message api docs on https://sdk.collaboraonline.com/docs/postmessage_api.html

    • Trigger message from collabora is UI_InsertGraphic
    • Message to collabora is Action_InsertGraphics
  3. db-ot commented on Jun 24, 2025

    @db-ot
  4. rhafer commented on Jul 8, 2025

    @rhafer
    Member

    @kulmann opencloud-eu/opencloud#1191 is a starting point for the backend implementation.

  5. self-assigned this
    on Jul 9, 2025
  6. moved this from Backlog to In Progress in OpenCloud Team Boardon Jul 9, 2025
  7. AlexAndBear commented on Jul 9, 2025

    @AlexAndBear
    Member
    Image https://github.com/CollaboraOnline/online/blob/de6ac50efe5402fcd5659f859e237cdedb1d81eb/browser/src/unocommands.js#L381

    its there, need to find a away to enable it

  8. AlexAndBear commented on Jul 9, 2025

    @AlexAndBear
    Member
    		case 'UI_InsertGraphic':
    				FilesAppIntegration.insertGraphic((filename, url) => {
    					this.postMessage.sendWOPIPostMessage(FRAME_DOCUMENT, 'Action_InsertGraphic', {
    						filename,
    						url,
    					})
    				})
    
  9. AlexAndBear commented on Jul 9, 2025

    @AlexAndBear
    Member

    Received postMessage event on insert image button click:
    [postMessage] {message: '{"MessageId":"UI_InsertGraphic","SendTime":1752056280245,"Values":{}}', targetOrigin: 'https://some-origin.de/', rest: Array(0)}

    Sent postMessage event on file pick

    PostMessageService.sendPostMessage FRAME_DOCUMENT {"MessageId":"Action_InsertGraphic","SendTime":1752056372545,"Values":{"filename":"image.png","url":"https://lalala.com/image.png"}}

  10. moved this from In Progress to Blocked in OpenCloud Team Boardon Jul 10, 2025
  11. tbsbdr commented on Aug 27, 2025

    @tbsbdr
    Member
  12. 7 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions