This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-6e044eca-53e4-40a7-bc81-c5d506e58790 XWIKI-23128 Open

Cannot copy paste text with images from some specific websites

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-8f8bc76c-a56c-4725-9b08-e5e5c28e0719 Lucian Chevereseanu created this issue on 22/Apr/25 14:26
 
Summary: Cannot copy paste text with images from some specific websites
Issue Type: cid:jira-generated-image-avatar-6e044eca-53e4-40a7-bc81-c5d506e58790 Bug
Affects Versions: 16.10.3, 16.10.5
Assignee: Unassigned
Attachments: Screenshot From 2025-04-22 14-51-49.png
Components: WYSIWYG Editor
Created: 22/Apr/25 14:26
Priority: cid:jira-generated-image-static-major-46b4a6a7-e828-4e9c-87e9-a9d784cd1b49 Major
Reporter: Lucian Chevereseanu
Description:

I'm not sure if this is a bug, or the expected behavior.

Steps to reproduce:
1. Open https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Group%20Management inside any browser

2. Copy some text and one or multiple images at the same time using CTRL+C
3. Edit a XWiki page, using the in-place editor, or the WYSIWYG editor (realtime colaboration can be off, or on, the behavior is the same)

4. Paste the content using CTRL+V

 

Expected result:
The whole content is pasted inside the XWiki page (both text and image(s)) and the image can be viewed both in edit mode, and in view mode(after a save)

 

Actual result:
The text is pasted, but the image(s) is added as a link:
_thumb_43577.png

More details:

This happens when copy-pasting content from some websites, but not from others. I reproduced on:

  • xwiki.org documentation page
  • Gitlab (reproducible with content from the ticket description, but not with content from the comments)
  • SharePoint

 

I reproduced both on XWiki 16.10.5 and 16.10.3
I reproduced using both Firefox (Version 137.0) and Chrome (135.0.7049)

Selecting just the image and using CTRL+C and CTRL+V gives out the same CORS error

Right-clicking the image and selecting "Copy image" works for xwiki.org and Gitlab, but does not for SharePoint(it still adds it as a link)