Pressing enter in a table copies element with auto-cursor-target class

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • CtB - Improve Existing
    • Warranty

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Add Panel Macro on a Page.
      2. Enter the macro and press Enter several times
      3. Publish/Update the page.

      We can also reproduce it by copy pasting older pages that generated empty paragraphs with "auto-cursor-target" class

      Expected Results

      The panel should display all of the empty linesActual Results

      The panel hides the lines

      Actual Results

      The rendered preview page has an empty panel rendered

      Observation

      When pressing enter in a panel/table - tiny mce will copy the previous empty paragraph with all of it's styling/css - this is useful to maintain consistent style.

      On server side - we filter out a paragraph that is empty and has auto-cursor-target css class.

      Also worth pointing out that TinyMCE has a special behaviour if you add a tabla - it prevents you from deleting th eline added after the inner table

      Workaround

      select panel content and format is as paragraph

            Assignee:
            Unassigned
            Reporter:
            Maxim Leizerovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: