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

Editor converts paragraphs to links

    XMLWordPrintable

Details

    Description

      Summary

      When you paste a link and then edit again, whole paragraphs are converted to links.

      Environment

      Local instance, no proxy.

      Steps to Reproduce

      1. Create a page with headings and content.
      2. Edit the page and type or paste a plain text web url immediately below a heading.
      3. Press [enter] to generate a newline. The url will be converted to an anchor tag. Do not press backspace or delete the newline.
      4. Update the page. The page will be saved with the url anchored, and without a newline
      5. Edit the page again. All content after the anchor will be converted to anchors to the same location

        Expected Results

        The link would be a link and the paragraphs would be plain text

        Actual Results

        The following storage format is the result:

        <h1>Heading</h1>
        <p><a href="https://www.google.com/maps">https://www.google.com/maps</a></p>
        <p><br /></p>
        <p><a href="https://www.google.com/maps">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</a></p>
        <p><a href="https://www.google.com/maps"><br /></a></p>
        <h1><a href="https://www.google.com/maps">Heading</a></h1>
        <p><a href="https://www.google.com/maps">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</a></p>
        <p><a href="https://www.google.com/maps"><br /></a></p>
        <p><a href="https://www.google.com/maps"><br /></a></p>
        <h1><a href="https://www.google.com/maps">Heading</a></h1>
        <p><a href="https://www.google.com/maps">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</a></p>
        

      Notes

      Please see screenshots of the issue attached.

      Workaround

      Correct the formatting by editing again.

      Attachments

        1. topofpagepastedlink.png
          topofpagepastedlink.png
          257 kB
        2. bottomofpage.png
          bottomofpage.png
          359 kB

        Issue Links

          Activity

            People

              jgiacoppo Jade Giacoppo (Inactive)
              aworley Ann Worley (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: