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

Only the first Image Style is displayed in the Image dialog drop-down if there are multiple image styles with the same Type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.20
    • Image
    • None
    • Windows 11 Pro, Chrome 122, using a local instance of XWiki 16.1.0 on Tomcat 9.0.86, MariaDB 11.3
    • Unknown

    Description

      Steps to reproduce

      1. Go to Administer Wiki > Look & Feel > Image Styles
      2. Create a new Image Style (e.g. Identifier: 'Style1', Pretty Name: Pretty1, Type: thumbnail)
      3. Create again a new Image Style (e.g. Identifier: 'Style2', Pretty Name: Pretty2, Type: thumbnail)
      4. Edit a page with CKEditor
      5. Click on 'Image' from toolbar
      6. Select an image from Gallery tab
      7. Click 'Select' button
      8. Observe the list of Image Styles displayed in the drop-down

      Expected results

      In the Image Styles drop-down, both 'Pretty1' and 'Pretty2' styles are displayed along with the '—' default style.

      Actual results

      Only 'Pretty1' and the default style '—' are displayed.

      In order for 'Pretty2' to be displayed as well, the style Type must be changed to something different than the first entry (e.g. 'Pretty1') has or the style must be forced as the default style.

      Tested and reproduced also on XWiki 15.10.6, 14.10.21 and 16.1.0.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: