Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-7053

Backport CMS7-7022 to 7.7 & 7.8: [Xinha] insert paragraph can throw an error and corrupt content

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.22.15, 2.24.01, 2.26.00
    • 2.22.16, 2.24.03
    • None

    Description

      UPDATE:

      This actually happends whenever the cursor is placed outside html elements like <p> (and thus directly into the <body> element). An error is thrown and the content is not placed back since the javascript stops working. Placing the cursor outside the html elements is only possible if you enable the html view.

      --------------------------------------------------

      Reproduction path:

      1) Open the xinha editor in text mode
      2) add following content

      <p>paragraph1</p>
      <br/>
      <p>paragraph2</p>

      3) Switch to html mode
      4) Place the cursor in the space between both sentences
      5) Press enter

      Everything below the <br/> will disappear.

      Reproducible in Xinha demo as well: http://xinha.raimundmeyer.de/x_examples/ext_example.html

      Javascript error: Uncaught TypeError: Cannot call method 'appendChild' of null (in http://localhost:8080/cms/7b282b48/xinha/xinha/modules/Gecko/paraHandlerBest.js line 122)

      Attachments

        1. content html.jpg
          content html.jpg
          14 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          14 kB
        3. screenshot-2.jpg
          screenshot-2.jpg
          13 kB

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              jsheriff Junaidh Kadhar Sheriff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: