This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-90510c5e-1865-4a09-9e37-dfffcb61fff9 XWIKI-24189 Open

The 'Language' field value is still inconsistent when inserting Code Macro from "Insert" menu

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d7843aa1-9990-4211-88d4-486e0248f41d Ilie Andriuta created this issue on 07/Apr/26 11:59
 
Summary: The 'Language' field value is still inconsistent when inserting Code Macro from "Insert" menu
Issue Type: cid:jira-generated-image-avatar-90510c5e-1865-4a09-9e37-dfffcb61fff9 Bug
Affects Versions: 17.10.6
Assignee: Unassigned
Attachments: Code_Language_Snippet.png, Code_Snippet.png
Components: CKEditor
Created: 07/Apr/26 11:59
Environment: Windows 11 Pro, Edge 146, using an instance of XWiki 17.10.6 on PostgreSQL 17, Jetty 12 Standalone
Priority: cid:jira-generated-image-static-major-c616f73c-1c03-4159-a746-ee25774f6ffe Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Edit a page with CKEditor
  2. From the toolbar, click 'Insert' > 'Code Snippet'
  3. Observe the Language field

Expected results

The 'Language' field value is consistent (taking into consideration the autodetection feature of the Code Macro).

Actual results

When the Code Macro is inserted from the toolbar by clicking 'Insert' > 'Code Snippet', the 'Language' field is 'none', but when the macro is inserted in other ways like from 'Insert' > 'Other Macros' > 'Code', via Quick Actions or just pasted as {{code}}{{/code}} in Source mode, the 'Language' field is empty.

 
 

1 update

 
cid:jira-generated-image-avatar-d7843aa1-9990-4211-88d4-486e0248f41d Changes by Ilie Andriuta on 07/Apr/26 12:00
 
Labels: consistency