Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.22.15, 2.24.01, 2.26.00
-
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
Issue Links
- relates to
-
CMS-7022 Xinha: insert paragraph can throw an error and corrupt content
- Closed