Ticket #8732 (closed Bug: fixed)
CKEditor creating hidden spans which can result in hidden content
|Reported by:||duncansimey||Owned by:||fredck|
|Component:||Core : Styles||Version:||3.5.1|
One of our customers reported instances of text that looked OK when they typed it in to CKEditor, but was missing when the edited HTML was later included in reports generated by our application. Investigation showed their text was inside spans with style display:none We've worked out how to reproduce the problem with Firefox and IE (only checked IE7 onwards), see below.
The text inside the display:none spans is only displayed inside CKEditor on some browsers (e.g. IE9 in IE7 document mode). If the person entering the text has one of these browsers then there is no indication that there is a problem. The problem can be reproduced on 3.6.2 Demo and the Nightly Build demo.
<!-- Start of Text --> <p>Testing</p> <p>One</p> <p>Two</p> <p>Three</p> <!-- End of Text -->
Inspect the HTML in Source mode; it now contains weird hidden spans (see below). Clicking after the end of the word Testing and typing some text adds the text into the hidden span. Depending on the exact browser version, the typed text either gets displayed or hidden or sometimes does not go into the hidden span.
<!-- Start of Text --> <p><span id="cke_bm_74S" style="display: none"> </span>Testing<span id="cke_bm_74E" style="display: none"> </span></p> <p>One</p> <p><span style="background-color: #ffff00">Two</span></p> <p><span id="cke_bm_77S" style="display: none"> </span>Three<span id="cke_bm_77E" style="display: none"> </span></p> <!-- End of Text -->
- Keywords IE Firefox added
- Status changed from new to confirmed
- Version changed from 3.6.2 to 3.5.1
- Status changed from confirmed to closed
- Resolution set to worksforme
- Keywords Firefox removed
- Status changed from closed to reopened
- Resolution worksforme deleted
- Status changed from confirmed to review
- Owner set to fredck
- Component changed from General to Core : Styles