Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-1192

Introduce imageUrl into chooseAsset Action under JS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.0.25
    • None
    • None

    Description

      Steps to reproduce

      1 - Introduce a dialog with the following

      description:
      $type: richTextField
      label: Description
      height: 600
      i18n: true
      images: true

      2 - Upload an image

      3 - Edit the component/page again select the image in the rich text field and trey to change it to other one

      Expected results

      The image is preselected in the DAM selector dialog

      Actual results

      Root element in selected

      Workaround

      The event relies in a java callback executed from the JS side

      Development notes

      • magnolia-ui-framework-jcr/src/main/resources/VAADIN/js/filebrowser/plugin.js L50 launches chooseAsset action
      • Additional parameter can be injected with the asset url

      Checklists

        Acceptance criteria

        Attachments

          1. bad_path.png
            bad_path.png
            1.13 MB
          2. good_path.png
            good_path.png
            1.85 MB

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                jsarf Jaromir Sarf
                asoto Alberto Soto
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD