Restore Copy and Paste Between Collabora and Desktop Apps

Start by testing with plain text and the keyboard: copy from a local app, click inside the Collabora document, and press Ctrl+V (or Command+V on macOS). To copy out, select text in Collabora, press Ctrl+C or Command+C, then paste into a local app. If shortcuts work but the toolbar or right-click Paste does not, the browser’s clipboard permission path is the likely issue. If shortcuts fail too, test both directions and check whether Collabora is embedded in another site.

Measure the failure before changing settings

The system clipboard is the shared buffer that transfers data between applications. Collabora Online runs inside a browser, so copying across its boundary also passes through browser security rules.

  1. Open a basic local text editor and copy one short, non-sensitive sentence. In Collabora, click in the document body and use the keyboard paste shortcut.
  2. Now copy a short sentence from the Collabora document and paste it into the local editor.
  3. Finally, copy and paste between two local apps. If this last test also fails, troubleshoot the operating system or remote desktop clipboard first; Collabora is not the only app involved.

Use plain text for the first test. Images, tables, spreadsheet ranges, and formatted text can use different clipboard formats, so a plain-text test separates basic access from format-conversion problems.

Illustrative browser office document with selected text beside a local Notes window showing the same text after paste.
The useful baseline is plain text copied from the web document into a local app; repeat the test in the opposite direction.

Try the browser’s keyboard route first

Click the document editing area so it has focus. Use the system shortcut rather than the editor toolbar or a browser context menu. On Windows and Linux, use Ctrl+C and Ctrl+V; on macOS, use Command+C and Command+V. When a Collabora message says the browser has limited clipboard access and asks you to use shortcuts, follow that instruction. The keyboard action is tied directly to a user gesture and can work even when a menu action that calls the asynchronous Clipboard API is blocked.

If it does not, make sure the document is editable, the cursor is in the document rather than a search box or toolbar field, and the source text was actually selected. Close and reopen the document once after a permission change; a stale editor frame may keep the previous policy.

First confirm plain text arrives. Then test the rich content you need; fonts, formulas, images, and cell formats may not transfer identically. Use Paste Special when the destination offers it.

Allow clipboard access in the browser

The modern Clipboard API is restricted to secure contexts, usually HTTPS, and browsers can require a user gesture or permission. In Chrome or Edge, open the site information control next to the address, open site settings, and set Clipboard to Allow for the trusted site when that permission is available. If a browser prompt appears when you choose Paste, allow it only for the office service you trust. Reload the document and repeat the two-direction text test.

Illustrative Chromium-style site settings panel for office.example.com with the Clipboard permission set to Allow.
A browser clipboard permission may enable menu-based or rich paste actions when the browser requests it.

Clipboard permission labels and behavior vary by browser. Some browsers use a user gesture or a short-lived paste prompt instead of a persistent permission. A managed browser can also enforce a policy that overrides your choice; if the control is locked or the permission is denied by policy, ask the browser administrator to check the rule for the office site. Keep the site on HTTPS: granting a permission does not turn an insecure origin into a secure context.

If Collabora is inside an iframe, check the integration

An iframe is a web page embedded inside another page. Many Collabora deployments use one so the host platform can display the editor. In Chromium-based browsers, a cross-origin frame may need the embedding page to delegate clipboard access. The Collabora SDK manual documents this iframe attribute for its clipboard permission query:

<iframe allow="clipboard-read *; clipboard-write *">
Illustrative code editor showing an iframe allow attribute with clipboard-read and clipboard-write permissions.
The Collabora SDK documents clipboard permissions on the embedding iframe; only the platform that creates that frame can change this attribute.

This is a setting for the integration that creates the frame, not a Docker setting on the Collabora server. If you maintain the host application, verify the actual editor iframe in browser developer tools and check that the parent page’s Permissions-Policy response header does not block clipboard-read or clipboard-write. A restrictive parent policy can still deny access even when the iframe has an allow attribute. Delegate only to the Collabora frame your users need; do not grant broad clipboard access to unrelated embedded content.

If you use a hosted Nextcloud, learning platform, or document portal and cannot edit its frame markup or response headers, send its administrator the browser and version, which direction failed, whether keyboard shortcuts work, and any clipboard-related console error. They may need to update the integration. Changing CODE’s network ports or restarting its container will not grant an iframe browser permission.

Use the symptom to choose the next check

What you observeWhat to check next
Toolbar Paste fails, but Ctrl+V worksUse the shortcut or grant the requested browser clipboard permission for the trusted site.
Only Collabora-in to desktop copy failsCheck copy restrictions or browser write permission; confirm simple selected text is copied.
Only desktop-to-Collabora paste failsCheck browser paste permission, focus in the document, and whether the host frame delegates read access.
Console says “Clipboard API has been blocked by a permissions policy”The embedding page or its response header is blocking access. The integration owner must adjust it.
Plain text works but rich content does notCompare supported clipboard formats and the destination app’s paste options; this may be a format-fidelity limit rather than total clipboard failure.
Illustrative browser developer console showing a clipboard Permissions Policy violation and an example status after a frame permission update.
A Permissions Policy violation points to the embedding page or its headers; the example is a diagnostic illustration, not a live test result.

Confirm the result

After a permission or integration change, reopen the document and repeat both plain-text tests: local app to Collabora, then Collabora to local app. Confirm the text appears in the intended place, then test the specific rich content you rely on. If only the menu works after the change, verify the keyboard route too; if only shortcuts work, the core clipboard path is usable but the asynchronous browser permission path may still be blocked.

For the security rules behind browser clipboard access, see MDN’s Clipboard API reference. For Chrome site permission controls, use Chrome’s site settings help. Integration owners can check Collabora’s advanced integration documentation for the iframe clipboard permission requirement.

Leave a Comment

Restore Copy and Paste Between Collabora and Desktop Apps

Restore Copy and Paste Between Collabora and Desktop Apps

Test the system clipboard, adjust browser permissions, and identify when an embedded Collabora integration needs an iframe policy change.

Make Custom Fonts Available in Collabora CODE Docker

Make Custom Fonts Available in Collabora CODE Docker

Mount font files into Docker and Collabora’s systemplate so custom typefaces appear in the editor and render correctly in documents.

Restore Collabora CODE Settings Without Losing Deployment Changes

Restore Collabora CODE Settings Without Losing Deployment Changes

Back up coolwsd.xml and its deployment sources, restore them safely, and verify CODE before users return to editing.

Fix CODE’s WOPI Host Check by Matching the Host Origin

Fix CODE’s WOPI Host Check by Matching the Host Origin

Allow the exact Nextcloud or other WOPI origin in CODE, then verify the active host allow-list and distinguish it from Nextcloud’s source-IP restriction.

Resolve Collabora’s “Well, This Is Embarrassing” Error

Resolve Collabora’s “Well, This Is Embarrassing” Error

Trace Collabora’s browser, WOPI, and WebSocket connections to find why a document will not open, then apply the fix that matches your Nextcloud setup.

Run Collabora Online Across Kubernetes Nodes

Run Collabora Online Across Kubernetes Nodes

Deploy Collabora CODE replicas with Helm, keep each document on one pod through WOPI affinity, and verify ingress, node placement, and Nextcloud editing.

Restore Collaboras WebSocket Connection Through the Proxy

Restore Collaboras WebSocket Connection Through the Proxy

Trace a failed socket handshake from browser to coolwsd, then match the reverse-proxy route to your Collabora version, including the CODE 26.04 Apache change.

Fix WOPI Proof Errors by Checking Keys, Discovery, and URLs

Fix WOPI Proof Errors by Checking Keys, Discovery, and URLs

Trace Collabora WOPI proof failures to mismatched keys, stale discovery data, clock drift, or proxy URL changes—without weakening validation.

Fix a Misrendered Collabora Online Font Size Dropdown

Fix a Misrendered Collabora Online Font Size Dropdown

Reset browser zoom, test a clean session, and identify when a malformed size menu needs a Collabora server update.

Connect Nextcloud to a Self-Hosted Collabora CODE Container

Connect Nextcloud to a Self-Hosted Collabora CODE Container

Deploy Collabora CODE with Docker, connect it securely to Nextcloud Office, and verify document editing with practical WOPI and proxy checks.