Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
17.10.3
-
Windows 11 Pro, Firefox 148, using an instance of XWiki 17.10.4 on Oracle 19c, Tomcat 11, Java 21
-
Unknown
-
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.