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

The default image style is not forced as selected when inserting images when identifier and type are different

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.10.4, 15.5.5, 14.10.21
    • 15.8-rc-1, 15.5.3, 14.10.19
    • Image
    • None
    • Windows 11 Pro, Chrome 119, using a local instance of XWiki 15.8 on Tomcat 9.0.83, MySQL 8.2
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Go to Administer Wiki > Look & Feel > Image Styles
      2. Create a new Image Style (e.g. 'Style1' - optional, choose some distinctive settings, like a specific Width/ Height, default Alignment: Center) the identifier and type must be different
      3. From "Default Style" drop-down, select the newly created style (e.g. 'Style1')
      4. Check (tick) 'Force Default Style' checkbox
      5. Click "Update the default image style" button
      6. Edit a page (e.g. Sandbox) with CKEditor
      7. Click on 'Image' from toolbar
      8. Select an image from Gallery tab
      9. Click 'Select' button
      10. Observe the "Image Styles" drop-down selection
      11. Click "Insert" button

      Expected results

      In the "Image Styles" drop-down, the 'Style1' is automatically selected since was selected as Default Style from Administration and the 'Force Default Style' checkbox was checked.

      The image is inserted using the 'Style1' parameters (e.g. the specific Width/ Height, default Alignment: Center).

      Actual results

      In the Image dialog drop-down nothing is selected. The image is inserted with the default parameters (which I think corresponds to "---" selection).

      It is to be mentioned that on the drop-down only the 'Style1' is available for selection, which is expected.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: