Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-44336

Brank line (<p> tag with white space ) remains after moving attachment macro by drag and drop

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      When user move an attachment file macro by drag and drop in edit mode, a blank line (actually <p> tag with white space char) remains at the previous position of the attachment. The blank line is not reflect in WYIWYG editor.

      Environment

      • Confluence 5.9.12 (server)
      • Confluence Cloud

      Steps to Reproduce

      1. Create with a page like this
        Source code by Confluence Source Editor
        <p>AAAA</p>
        <p>
          <ac:image ac:height="250">
            <ri:attachment ri:filename="IMG03.jpg"/>
          </ac:image>
        </p>
        <p>BBBB</p>
        <p>
          <ac:image ac:height="250">
            <ri:attachment ri:filename="IMG01.jpg"/>
          </ac:image>
        </p>
        <p>CCCC</p>
        <p>
          <ac:image ac:height="250">
            <ri:attachment ri:filename="IMG02.jpg"/>
          </ac:image>
        </p>
        
        

      1. Edit the page and move Move IMG01.jpg and IMG02.jpg above text “BBBB” by drag and drop
      2. Save the page
        The blank lines are added at the position that the moved images were located at. The lines were not appeared in the edit mode at the previous step.

      Expected Results

      The bank lines should not be added. Or at least, the blank lines should appear after drag and drop in edit mode so that user can delete it immediately.

      Actual Results

      The blank lines are added at the position that the moved images were located at. We can see the source cod like this,

      <p>AAAA</p>
      <p>
        <ac:image ac:height="250">
          <ri:attachment ri:filename="IMG03.jpg"/>
        </ac:image>
      </p>
      <p>
        <ac:image ac:height="250">
          <ri:attachment ri:filename="IMG01.jpg"/>
        </ac:image>
      </p>
      <p>
        <ac:image ac:height="250">
          <ri:attachment ri:filename="IMG02.jpg"/>
        </ac:image>
      </p>
      <p>BBBB</p>
      <p> </p>
      <p>CCCC</p>
      <p> </p>
      
      

      Workaround

      Open the page after saving and remove blank lines ‘<p> </p>’ manually.

      Attachments

        1. after-editing.png
          after-editing.png
          1.27 MB
        2. before-edit.png
          before-edit.png
          1.28 MB
        3. in-editing.png
          in-editing.png
          1.35 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ynakajima Yumi Nakajima (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: