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

The image is not inserted with the chosen style parameters when Identifier and Type are different

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.10.7, 16.2.0-rc-1, 14.10.22
    • 14.10.20
    • Image
    • None
    • Windows 11 Pro, Firefox 123, using a local instance of XWiki 14.10.21 on Tomcat 9.0.85, MySQL 8.3
    • 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' - choose some distinctive settings, like a specific Width/ Height, e.g 500, default Alignment: Center), the Identifier and Type must be different (eg. Identifier: Pretty1, Type: thumbnail)
      3. Edit a page with CKEditor
      4. Click on 'Image' from toolbar
      5. Select an image from Gallery tab
      6. Click 'Select' button
      7. Choose the' Pretty1' style from the drop-down
      8. Click "Insert" button

      Expected results

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

      Actual results

      The image is inserted with the default parameters (which I think corresponds to "---" selection) (e.g. Alignment: None, default size).

      Also, the image is resizable and the Alignment can be changed, although in the Administration, on the Style page the checkboxes are not selected.

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: