IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-58504

Copy-Paste Colored Text in editor causes stacking Spans to accumulate and makes the editor unusable

      Summary

      In the Confluence Editor, If you color-format a line of text and then copy-paste that line of text, the color formatting "<span>" will not close until just before the close of the last paragraph. This causes the "<span>" tags to stack up and eventually renders the editor useless. Once published, the page displays no immediate symptoms, but when trying to edit, the editor will be impossibly slow and can be impacted such that the draft never loads.

      Environment

      (Optional - If Applicable)
      Cloud.

      Steps to Reproduce

      1. Create a new page with a line of text and apply a color to the whole line of text and publish.
      2. Edit the page again and copy the whole line of colored text.
      3. Paste the line in new lines (as new paragraphs is confirmed to cause the problem, so just use Return and not Shift-Return) repeatedly.
      4. Eventually, the page will publish on it's own out of nowhere, or you can publish the page after you have 10 - 20 lines pasted.

      Expected Results

      The Storage format contains lines with discreet color formatting, or a single color formatting span is intelligently placed.

      Actual Results

      When viewing the storage format, you will see all the text is lost in a sea of color formatting span tags, and just before the last ending "</p>" tag you will see something like this:

      </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
      

      Notes

      Changing the color formatting of the affected text does not remove the bad spans.

      Workaround

      The only known workaround at this time is to copy and paste the text into an editor that does not support the color, (such as notepad) and then to copy paste out of that editor, back into confluence to remove the color formatting.

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            Uploaded image for project: 'Confluence Cloud'
            1. Confluence Cloud
            2. CONFCLOUD-58504

            Copy-Paste Colored Text in editor causes stacking Spans to accumulate and makes the editor unusable

                Summary

                In the Confluence Editor, If you color-format a line of text and then copy-paste that line of text, the color formatting "<span>" will not close until just before the close of the last paragraph. This causes the "<span>" tags to stack up and eventually renders the editor useless. Once published, the page displays no immediate symptoms, but when trying to edit, the editor will be impossibly slow and can be impacted such that the draft never loads.

                Environment

                (Optional - If Applicable)
                Cloud.

                Steps to Reproduce

                1. Create a new page with a line of text and apply a color to the whole line of text and publish.
                2. Edit the page again and copy the whole line of colored text.
                3. Paste the line in new lines (as new paragraphs is confirmed to cause the problem, so just use Return and not Shift-Return) repeatedly.
                4. Eventually, the page will publish on it's own out of nowhere, or you can publish the page after you have 10 - 20 lines pasted.

                Expected Results

                The Storage format contains lines with discreet color formatting, or a single color formatting span is intelligently placed.

                Actual Results

                When viewing the storage format, you will see all the text is lost in a sea of color formatting span tags, and just before the last ending "</p>" tag you will see something like this:

                </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
                

                Notes

                Changing the color formatting of the affected text does not remove the bad spans.

                Workaround

                The only known workaround at this time is to copy and paste the text into an editor that does not support the color, (such as notepad) and then to copy paste out of that editor, back into confluence to remove the color formatting.

                        ndang Nguyen Dang
                        jlong@atlassian.com Jared Long
                        Votes:
                        2 Vote for this issue
                        Watchers:
                        19 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                            ndang Nguyen Dang
                            jlong@atlassian.com Jared Long
                            Affected customers:
                            2 This affects my team
                            Watchers:
                            19 Start watching this issue

                              Created:
                              Updated:
                              Resolved: