This issue has been created
There are 6 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a49f620e-fa0d-45b7-8bcf-c096e5b47de4 XWIKI-23105 Open

Pasting captioned images generates unexpected wiki syntax

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-9db2c26a-afa0-418c-b4ae-1f8bb41dc056 Marius Dumitru Florea created this issue on 14/Apr/25 09:00
 
Summary: Pasting captioned images generates unexpected wiki syntax
Issue Type: cid:jira-generated-image-avatar-a49f620e-fa0d-45b7-8bcf-c096e5b47de4 Bug
Affects Versions: 14.10.20
Assignee: Unassigned
Components: CKEditor
Created: 14/Apr/25 09:00
Priority: cid:jira-generated-image-static-major-6cc33ce1-089c-4a4a-8227-bbe6dc63c91a Major
Reporter: Marius Dumitru Florea
Description:

Follow these steps to reproduce:

  • copy some content that includes an image with caption; you can use for instance https://en.wikipedia.org/wiki/Design_rule_checking
  • edit a wiki page with the WYSIWYG editor
  • paste the copied content
  • switch to Source and check the generated wiki syntax

Expected: the image caption should end up as image syntax "label", as in [[caption>>image:some.png]]
Actual: the image caption ends up outside the image syntax, as text that follows the image, as in [[image:some.png]] caption here

For instance, by pasting the captioned image from https://en.wikipedia.org/wiki/Design_rule_checking , we get:

[[~[~[image:https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/The_three_basic_DRC_checks.svg/300px-The_three_basic_DRC_checks.svg.png~|~|height="254" width="300"~]~]>>url:https://en.wikipedia.org/wiki/File:The_three_basic_DRC_checks.svg]]The basic DRC checks - width, spacing, and enclosure
 
 

6 updates

 
cid:jira-generated-image-avatar-9db2c26a-afa0-418c-b4ae-1f8bb41dc056 Changes by Marius Dumitru Florea on 14/Apr/25 09:01
 
Fix Version: 16.10.6
Fix Version: 17.3.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Marius Dumitru Florea
Tests: Integration