Changes between Initial Version and Version 6 of Ticket #5606
- Timestamp:
- Feb 18, 2014, 12:53:57 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5606
-
Property
Component
changed from
General
toCore : Output Data
-
Property
Summary
changed from
CKeditor adds HTML tags with no content
toCKEditor doesn't output correctly protected source if it's the only content
-
Property
Milestone
changed from
CKEditor 3.x
to - Property Keywords Confirmed added
-
Property
Component
changed from
-
Ticket #5606 – Description
initial v6 1 CKEditor 3.2.1 (revision 5372) 1 1. Open [[attachment:5606.html]] on FF. 2 2. Focus editor. 3 3. Switch to source mode. 2 4 3 When starting CKEditor with no content, switching to source view shows "<br />". If I remove the text, switch to HTML view and back to source view again, the additional "<br />" reappears. 5 {{{ 6 <p><br /> 7 <? $stuff='stuff'; ?></p> 8 }}} 4 9 5 This same behavior occurs if the only content is matched by the protectedSource regex. For example, this following content: 6 7 <? $stuff='stuff'; ?> 8 9 will result in this output: 10 11 <? $stuff='stuff'; ?><br /> 12 13 The following examples will not: 14 15 stuff<? $stuff='stuff'; ?> 16 17 or 18 19 <? $stuff='stuff'; ?>some html 10 All browsers autoparagraph protected source. FF additionally adds `<br>`.