Background color and text color on the same expand span tag make content disappear from the edit mode

XMLWordPrintable

    • 8
    • Minor
    • 2

      Issue Summary

      From the Confluence UI it is not possible to highlight the text or add a background color to a text at the same you add a color to the text.

      However, it is possible to add the span tag containing both the background and text color applied at the same time for the same text using the REST API for the current editor, but that makes the content disappear upon you click on the edit page.

      This does not affect the legacy editor.

      Steps to Reproduce

      First scenario:

      1. Create a v2 page using the Confluence REST API with text with both a text color and a background color
        For example:
        <p>
        	<span style="color: blue;background-color: yellow;">Styled text</span>
        </p>
        

      Second scenario:

      1. For any legacy pages with text with both a text color and background color, if the pages were converted to the v2 editor before the fix for CONFCLOUD-78727 released, then they will have this invalid content.
      2. Open opening these pages, the v2 editor will fail to load the invalid content and will instead appear to be totally blank.

      Expected Results

      First scenario: The Page created using the REST API should return an error mentioning the content is not supported or, allow to use of both background and text color.

      Second scenario: The editor should gracefully handle the invalid content and remove the background color on load, or support both color types being assigned simultaneously.

      Actual Results

      First scenario: The REST API allows the creation to succeed, and the content can be viewed just fine. However, upon editing the content, the v2 Editor will fail to load the page content at all, and will appear to be totally blank. Then a draft sync occurs that will erase the draft content from the database. The published content is still saved in the database, so no data loss should occur. It is not possible to edit the page though without recreating it entirely.

      Second scenario: Upon editing the content, the v2 Editor will fail to load the page content at all, and will appear to be totally blank. Then a draft sync occurs that will erase the draft content from the database. The published content is still saved in the database, so no data loss should occur. It is not possible to edit the page though without recreating it entirely.

      Workaround

      Update the page through the update REST API  to remove the background or text color.

      OR

      Revert the page to the legacy (v1) editor.

            Assignee:
            Alex K
            Reporter:
            Jessica
            Votes:
            2 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: