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

TinyMCE Code causing Nested Spans from Copy and Paste

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 9.0.1
    • 7.19.16, 8.5.3, 8.5.4, 7.19.17, 8.7.2, 8.5.6, 7.19.21, 8.5.11, 8.5.12, 8.9.4
    • Editor - Core

      23 August 2024 Update

      With the fix released by the upstream vendor, we're now investigating how to get that fix back to the version of TinyMCE used in our Confluence 8.5 LTS. Unfortunately with the options made available to us, we're having to investigate backporting the entire editor to this LTS release, which is potentially a breaking change. We're working on it and will provide updates as we have them.

      Note that a separate but related improvement was made as part of CONFSERVER-54754: Page with excessive nested span tags causes Synchrony to stop working (fixed in Confluence Data Center 8.4.0, 7.19.15) that has already been backported to LTS releases.

      Issue Summary

      Nested spans still created in some scenarios even after CONFSERVER-54754 patch causing a stack overflow for Synchrony. According to development this is a bug in TinyMCE code that needs to be fixed by TinyMCE.

      Steps to Reproduce

      Reproduction steps vary.

      Expected Results

      Confluence should flatten nested spans.

      Actual Results

      Nested spans are allowed and cause a stack overflow for Synchrony

      Workaround

      1. Install Confluence Source Code Editor
      2. Edit the page, then click the Source Editor icon to edit the page source
      3. Search for the stack of nested tags
      4. Once identified, remove all nested <span></span> tags between the <p> and </p> tags
      5. Save Page

      Alternately, the remove formatting editor option can be used to strip out all the formatting including these span tags.

              nbhawnani Niraj Bhawnani
              caronson Cole Aronson
              Votes:
              46 Vote for this issue
              Watchers:
              79 Start watching this issue

                Created:
                Updated:
                Resolved: