Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9572

Drag&drop images in a rich text into a repeater doesn't work

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.11, 4.2.0
    • 4.1.10
    • None
    • None
    • 4.2 M11

      • Edit a content
      • Drag&drop an local image in a richText which is in a repeater
      • Save
      • Reopen
      • The image doesn't appears
      • Save ... an error occurred :
        "Impossible de transformer le texte riche : Exception during processing of cocoon://_plugins/cms/convert/html2docbook."

      Note that it works for rich text outside a repeater.

      After fixing this issue, try to reorder an entry of the repeater with an image in a richText. It's possible that the path of the image is not recomputed

          [CMS-9572] Drag&drop images in a rich text into a repeater doesn't work

          Laurence Aumeunier added a comment - - edited

          The image is correctly uploaded and saved in JCR.
          Tested with FAQ content.

          data-ametys-src attribute is like contentId@questions.4.answer;paste.png

          In docbook we have

          <mediaobject>
                  <imageobject>
                    <imagedata type="local" fileref="defaultWebContent://ae7f5a10-58a1-48c0-a48a-8aa362c99ea1@questions.4.answer;paste.jpeg" width="280px" depth="180px"/>
                  </imageobject>
          </mediaobject>
          

          whereas for inserted local images we have

          <mediaobject class="simple">
                <imageobject><imagedata type="local" fileref="defaultWebContent://ae7f5a10-58a1-48c0-a48a-8aa362c99ea1@questions/1/answer;smiley.jpg" width="268px" depth="188px"/>
               </imageobject>
          </mediaobject>
          

          Laurence Aumeunier added a comment - - edited The image is correctly uploaded and saved in JCR. Tested with FAQ content. data-ametys-src attribute is like contentId@questions.4.answer;paste.png In docbook we have <mediaobject> <imageobject> <imagedata type= "local" fileref= "defaultWebContent://ae7f5a10-58a1-48c0-a48a-8aa362c99ea1@questions.4.answer;paste.jpeg" width= "280px" depth= "180px" /> </imageobject> </mediaobject> whereas for inserted local images we have <mediaobject class= "simple" > <imageobject> <imagedata type= "local" fileref= "defaultWebContent://ae7f5a10-58a1-48c0-a48a-8aa362c99ea1@questions/1/answer;smiley.jpg" width= "268px" depth= "188px" /> </imageobject> </mediaobject>

            laurence Laurence Aumeunier
            lbouchet Loïc Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: