• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 6.4.2, 6.8.2, 8.5.4, 9.1.0, 8.5.14
    • Content - Page

      Summary

      Users are unable to copy the content of the table headers in Confluence pages. This happens in Google Chrome as well as Firefox.

      Steps to Reproduce

      1. Create a Confluence page.
      2. Add a table with a header.
      3. Add content in the headers.
      4. Save the page.
      5. In the view mode, try to copy the content of the header.

      Expected Results

      The content of the header is copied.

      Actual Results

      The header cannot be selected for copying.

      Workaround

      1. Disable the Confluence sortable table plugin
      2. Use Safari as the browser
      3. Copy the header through the Edit mode.

            [CONFSERVER-56411] Can't Copy Table Header

            KMTek added a comment -

            This ticket came from us. As a side not all the workarounds are not good for us so we did JS alternative using Observers:

            // inside a jquery document ready:
            var tableHeaders = $('table th.confluenceTh');
            var observer = new MutationObserver(function (mutations) {
            	mutations.forEach(function (mutation) {
            		if (mutation.target.hasAttribute("style")) {
            			$(mutation.target).removeAttr("style");
            		}
            	});
            });
            var config = { attributes: true, attributeFilter: ['style'] };
            tableHeaders.each(function(index) {
            	observer.observe(this, config);
            });

            We did not see any other inline styling other than user-select: none. So for us is fine removing the full inline style, but someone might want to handle it a bit differently by changing the code inside the if clause.

            What this does is that every time your own Confluence sortable table plugin changes the table headers inline styling this removes that style, by looking at changes in the style attribute.

            KMTek added a comment - This ticket came from us. As a side not all the workarounds are not good for us so we did JS alternative using Observers: // inside a jquery document ready: var tableHeaders = $( 'table th.confluenceTh' ); var observer = new MutationObserver( function (mutations) { mutations.forEach( function (mutation) { if (mutation.target.hasAttribute( "style" )) { $(mutation.target).removeAttr( "style" ); } }); }); var config = { attributes: true , attributeFilter: [ 'style' ] }; tableHeaders.each( function (index) { observer.observe( this , config); }); We did not see any other inline styling other than user-select: none. So for us is fine removing the full inline style, but someone might want to handle it a bit differently by changing the code inside the if clause. What this does is that every time your own Confluence sortable table plugin changes the table headers inline styling this removes that style, by looking at changes in the style attribute.

              Unassigned Unassigned
              afaridi Ahmad Faridi
              Affected customers:
              17 This affects my team
              Watchers:
              11 Start watching this issue

                Created:
                Updated: