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

Xinha: insert paragraph can throw an error and corrupt content

    XMLWordPrintable

Details

    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
          14 kB
          Arthur Bogaart
        2. screenshot-1.jpg
          14 kB
          Arthur Bogaart
        3. screenshot-2.jpg
          13 kB
          Arthur Bogaart

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              abogaart Arthur Bogaart
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: