Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-71571

Recoloring of the already colored table in Visual mode breaks the formatting in Rich Text Editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.13.15, 8.1.3, 8.2.6, 8.3.5, 8.4.3, 8.5.8, 8.6.1, 8.7.1, 8.8.1, 8.9.1, 8.10.1, 8.11.0, 8.11.1, 8.12.2, 9.12.12, 10.1.1
    • Rich Text Editor
    • None

      Issue Summary

      When using tables in Visual mode of the Rich Text Field editor and recoloring the table breaks the formatting completely.

      Steps to Reproduce

      1. Add a table to the description and save it:
        ||Heading A||Heading B||
        |Col A1|Col A2|
        |Col B1|Col B2|
      1. Enter Visual edit mode, select the table, then apply any text color (e.g. green)
        Heading A Heading B
        Col A1 Col A2
        Col B1 Col B2
      1. Save your field
      2. Enter the Visual edit mode again, select the table and apply a different color, then save.
      3. Table formatting is broken

      Expected Results

      Table changes the color to the last color selected.

      Actual Results

      Heading A||Heading B||
      Col A1 Col A2
      Col B1 Col B2

      Workaround

      Rich Text editor is adding multiple consecutive "color" end tags with curly brackets to the text that is being colored. This is the main issue behind the problem.

      Please check color tags while coloring multiple columns or parts of the multiple columns during re-edit of the table. As soon as you keep the color tags with curly brackets not consecutively added to each other, then the issue does not occur. If you are adding these tables and colors programmatically it's possible to avoid this, it only breaks if you use the editor multiple times and color the text in the table again with Rich text editor.

      This one works {color:#57d9a3}Heading A{color}
      
      ||{color:#57d9a3}Heading A{color}||{color:#57d9a3}Heading B{color}||
      |{color:#57d9a3}Col A1{color}|{color:#57d9a3}Col A2{color}|
      |{color:#4c9aff}Col{color} {color:#ffab00}B{color}{color:#de350b}1{color}|{color:#57d9a3}Col B2{color}|
      
      This one breaks due to consecutive {color}{color} ending tags added by Rich Text Editor
      
      ||{color:#57d9a3}Heading A{color}||{color:#57d9a3}Heading B{color}||
      |{color:#57d9a3}Col A1{color}|{color:#57d9a3}Col A2{color}|
      |{color:#4c9aff}Col{color} {color:#ffab00}B{color}{color:#de350b}1{color}{color}|{color:#57d9a3}Col B2{color}|
      
      

       

      Atlassian Update – 30 January 2025

      Dear Customers,

      Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Jira features that solve problems for a greater customer base. To that end, we aim to keep our issues up-to-date so they accurately reflect current customer needs. Based on the impact, we’ve decided to move this issue to our short-term backlog. We aim for it to be addressed with some improvements we have planned for the Rich Text Editor in FY26.

      The workaround for this bug is outlined above.

      Please continue watching this ticket for future updates and changes in the timeline that impacts your work.

      Best regards

      Phill Hayers

      Principal Software Engineer

       

              Unassigned Unassigned
              f83d66b3ca41 Michelle de Bruijn
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: