Skip to content

Fix Collabora clipboard on Chromium-based browsers #1567

@niklasiivari

Description

@niklasiivari

Initial Checklist

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

Idea

The iframe tag for collabora integration should be edited to enable clipboard access, as described in the collabora advanced integration documentation: here:

Allow the clipboard permission query
Chrome implements a JavaScript API to paste from the clipboard without using the keyboard. This relies on cross-origin iframes, which is disabled by default. To enable it in your integration, use a new attribute in the iframe element of your integration:

<iframe allow="clipboard-read *; clipboard-write *"/>

Once this is in place, the user will see a popup to allow access to the clipboard on first use.

Currently, this error is given in the console, and copying even using ctrl+c does not work:

bundle.js:14302 [Violation] Permissions policy violation: The Clipboard API has been blocked because of a permissions policy applied to the current document. See https://crbug.com/414348233 for more details. _asyncAttemptNavigatorClipboardWrite @ bundle.js:14302

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions