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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 17.10.8, 18.3.0-rc-1
    • 17.10.6
    • CKEditor
    • Windows 11 Pro, Edge 146, using an instance of XWiki 17.10.6 on PostgreSQL 17, Jetty 12 Standalone
    • Unknown
    • N/A
    • N/A

    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.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: