Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24087

Inconsistent 'Language' field value when inserting Code Macro in different ways

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 17.10.3
    • CKEditor
    • 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

      1. Edit a page with CKEditor
      2. Type / to trigger Quick Actions, then type "code"
      3. Select 'Code Snippet'
      4. Observe the Language field
      5. From the toolbar, click 'Insert' > 'Code Snippet'
      6. Observe the Language field
      7. From the toolbar, click 'Insert' > 'Other Macros' > 'Code'
      8. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: