Opened 14 years ago
Closed 14 years ago
#6984 closed Bug (fixed)
Line breaks are lost when enter mode is br
Reported by: | Wiktor Walc | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.3 |
Component: | Core : Output Data | Version: | 3.4 |
Keywords: | Cc: |
Description
Confirmed in Firefox 3.6.13, Safari and Opera.
Steps to reproduce
- Open _samples/enterkey.html
- Set enter mode to BR
- switch to source mode, paste the following:
<hr /> <br /> <br /> <br />
- Switch to wysiwyg and back
- Result:
<hr /> <br />
- Two line breaks are lost whenever user switches to source mode and back
Regression introduced with [5750].
Note that the real problem in #5293 was unwanted line break in a "supposed to be empty" document so that developers could detect whether user typed something to create a page or not. It was not a problem with an extra line break at the end of the document with some real content.
Attachments (1)
Change History (5)
comment:1 Changed 14 years ago by
Status: | new → confirmed |
---|
Changed 14 years ago by
Attachment: | 6984.patch added |
---|
comment:2 Changed 14 years ago by
Component: | General → Core : Output Data |
---|---|
Owner: | set to Garry Yao |
Status: | confirmed → review |
comment:3 Changed 14 years ago by
Status: | review → review_passed |
---|
Please also remove what's in the brackets in line 403 inside htmlparser/fragment.js.
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6458].
Actually a re-fix of #5293, in fact the original ticket had been overcomplicated.