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

Incorrect Cursor behavior when inserting block macro (Warning, Note, info, ...etc) into a list

      Issue Summary

      When inserting block macros (Warning, Note, info, etc.) into a list, hitting the enter (or return) key below the macro will cause the cursor to move to the new line above it. It is expected to create a new line below the macro , instead of creating the line above it

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Create a new page on Confluence.
      2. On the newly created page, create a list. 
      3. In the middle of the list, insert a block macro, for example, a Warning macro. 
      4. Observe there is an extra line generated below the Warning macro. 
      5. Move the cursor to the newly created line, and hit the enter (or return) key. 
      6. Observe a new line will be created above the Warning macro and the cursor also been moved to the newly created line above the macro.

      Expected Results

      There shouldn't be an extra line generated and while hitting the enter (or return) key below the macro, it should create a new line below the macro .

      Actual Results

      1. While hitting the enter (or return) key below the macro, it creates a new line above the macro.
      2. The extra line generated in step 4 disappeared when saving the page and entering the edit mode again.

      Please refer to the 

      Workaround

      1. Save the page and edit again remove the extra line generated in step 4.
      2. Enter the browser developer tool to remove the extra <br> element could also mitigate the issue. 

              nhoxuan Nam Ho
              9dd52b4ca361 Brent Lin
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: