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

Editor creates elements that are only styled like headings or paragraphs

      The editor has a bug where elements like headings and paragraph stop being headings and paragraph semantically, but retain their styling. This breaks, among other things, the ToC macro.

      How to reproduce (in Chrome):

      1. Create a page. Put two headings and two paragraphs in it, in this order:
        Heading A
        Paragraph A
        Paragraph B
        Heading B
        
      2. Delete the line break between Heading A and Paragraph A. Also, delete the line break between Paragraph B and Heading B, like so:
        Heading AParagraph A
        Paragraph BHeading B
        
      3. The whole first line will now be marked as a heading, but the second half of it will be styled like paragraph text. Also, the whole second line will be marked as a paragraph, but the second half of it will be styled like heading text.

            [CONFSERVER-29193] Editor creates elements that are only styled like headings or paragraphs

            Don Willis added a comment -

            This will be fixed in 5.2. There may still be a few edge-cases, but the primary ones of combining headings/paragraphs by deletion and pasting styled text are fixed.

            Don Willis added a comment - This will be fixed in 5.2. There may still be a few edge-cases, but the primary ones of combining headings/paragraphs by deletion and pasting styled text are fixed.

            BenA added a comment -

            I have been able to get the page to look right again by deleting the heading and reinserting plain text (copy&pasted via text editor to strip rich text) and applying the heading with the RTE, but I haven't checked for the span after doing so... it might have just wrapped the heading tag around the span. Perhaps not as it would probably still have turned up in the TOC.

            BenA added a comment - I have been able to get the page to look right again by deleting the heading and reinserting plain text (copy&pasted via text editor to strip rich text) and applying the heading with the RTE, but I haven't checked for the span after doing so... it might have just wrapped the heading tag around the span. Perhaps not as it would probably still have turned up in the TOC.

            bbuchanan discovered that the style spans created by the new chrome behaviour wind their way into the toc macro. Making the links in the toc appear styled.

            Don Willis added a comment - bbuchanan discovered that the style spans created by the new chrome behaviour wind their way into the toc macro. Making the links in the toc appear styled.

            This seems to be introduced by a change in Chrome rather than a change in Confluence and thus probably effects all version of Confluence. I've checked 5.1.2.

            Don Willis added a comment - This seems to be introduced by a change in Chrome rather than a change in Confluence and thus probably effects all version of Confluence. I've checked 5.1.2.

            JesperA added a comment -

            I can reproduce this reliably in Chrome 26, but not in Firefox or Safari.

            JesperA added a comment - I can reproduce this reliably in Chrome 26, but not in Firefox or Safari.

              iloire Ivan Loire (Inactive)
              jsarnesjo JesperA
              Affected customers:
              1 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: