Chrome introduces span element while using custom colour in heading text

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 0

      Steps to Reproduce

      1. Log in to Confluence using Chrome
      2. Go to > General Configuration > Colour Scheme
      3. Click Edit
      4. Change the Heading Text to #FF0000 (Red)
      5. Save the changes
      6. Create a test page with the following content format
        Source Editor
        <p>test content</p>
        <h2>test heading</h2>
        <p>new line</p>
        
      7. Save the page
      8. Edit again
      9. Hit delete key to remove the <h2>

      Observed Behaviour

      The editor is keeping the custom colour by adding a <span> tag

      Source Editor
      <p>test content<span style="color: rgb(255,0,0);">test heading</span>
      </p>
      <p>new line</p>
      

      Expected Behaviour

      No <span> like the following

      Source Editor
      <p>test contenttest heading</p>
      <p>new line</p>
      

      Workaround

      • Use other supported browsers (e.g Firefox)
      • Reset custom heading back to the default
        • Go to > General Configuration > Colour Scheme > Reset
      • Manually clear the text format by selecting the text in editor > More > Clear formatting

            Assignee:
            Unassigned
            Reporter:
            Lei Wang
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: