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

Clicking in the page margin causes the cursor and page to move esoterically

XMLWordPrintable

      Issue Summary

      In edit mode, clicking in the page's left margin causes the cursor and page to move esoterically

      A user would expect the cursor to be set directly to the right of the click, however the page esoterically scrolls upward and the cursor set to an undesired point. When it happens, it is disorienting and frustrating for the user. 

      Demonstration:

      Confluence versions tested and affected:

      • v8.5.20
      • v9.2.8
      • v10.1.1-m01

      Browsers used for testing:

      • Google Chrome 141.0.7390.123

      Steps to Reproduce

      1. Generate multiple paragraphs of text, enough to span double the current window size
      2. Scroll to the bottom of the page
      3. Click in the left margin

      Expected Results

      The cursor is set directly right of the click.

      The page does not scroll

      Actual Results

      The cursor is set esoterically to a part of the page not visible

      The pages scrolls to that point

      Workaround

      Add the following to Confluence AdministrationCustom HTML → “at end of BODY

      <script>
      try {
          require('confluence/api/event').bind('rte-ready', () => { 
              const iframe = document.getElementById('wysiwygTextarea_ifr');
              const contentDoc = iframe?.contentDocument;
              if (contentDoc?.body?.style) {
                  contentDoc.body.style.height = 'auto';
              }
              if (contentDoc?.documentElement?.style) {
                  contentDoc.documentElement.style.height = 'auto';
              }
          });
      } catch (e) {
          console.error('Editor height patching error', e);
      }
      </script>

       

        1. bug-demo-10.1.1-m01.mp4
          11.95 MB
        2. workaround-demo-10.1.1-m01.mp4
          15.95 MB

              Unassigned Unassigned
              allewellyn@atlassian.com Alex [Atlassian,PSE]
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: