|
| Summary: |
Inconsistent 'Language' field value when inserting Code Macro in different ways |
| Issue Type: |
Bug |
| Affects Versions: |
17.10.3 |
| Assignee: |
Unassigned |
| Attachments: |
Code_Language.png |
| Components: |
Rendering - Code Macro |
| Created: |
05/Mar/26 16:34 |
| Environment: |
Windows 11 Pro, Firefox 148, using an instance of XWiki 17.10.4 on Oracle 19c, Tomcat 11, Java 21 |
| Priority: |
Major |
| Reporter: |
Ilie Andriuta |
| Description: |
Steps to reproduce
- Edit a page with CKEditor
- Type / to trigger Quick Actions, then type "code"
- Select 'Code Snippet'
- Observe the Language field
- From the toolbar, click 'Insert' > 'Code Snippet'
- Observe the Language field
- From the toolbar, click 'Insert' > 'Other Macros' > 'Code'
- 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 via Quick Actions or from the toolbar by clicking 'Insert' > 'Code Snippet', the 'Language' field is 'none', but when the macro is inserted from 'Insert' > 'Other Macros' > 'Code' or just pasted as {{code}}{{/code}} in Source mode, the 'Language' field is empty. |
|