Opened 15 years ago
Closed 15 years ago
#3949 closed Bug (fixed)
[IE] Preformatted edit problem
Reported by: | Damian | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | Core : Styles | Version: | |
Keywords: | IBM IE Confirmed Review+ | Cc: |
Description
This issue may be related to #3948.
- Add some preformatted content like so:
<pre>Test line 1 Test line 2</pre>
- Place cursor at end of line 2 and hit ENTER.
Notice that a space is added instead of a new line.
- Revert to content as at 1.
- Place cursor at end of line 1 and hit ENTER.
Result:
<pre>Test line 1 Test line 2</pre>
The actual result should be a new line, the space and "1" should not be on the new line
Attachments (3)
Change History (12)
comment:1 Changed 15 years ago by
Keywords: | IE Confirmed added |
---|
comment:2 follow-ups: 4 6 Changed 15 years ago by
Component: | General → Core : Styles |
---|---|
Owner: | set to Garry Yao |
Status: | new → assigned |
Changed 15 years ago by
Attachment: | 3949.patch added |
---|
comment:3 Changed 15 years ago by
Keywords: | Review? added |
---|
The culprit is inside the IE selection system where it report wrong offset position with the following text selection:
line1^\r\nline2
Based no this fault, the range system is incorrectly figure out it as:
line^1\r\nline2
The solution is just about normalizing the CRLF for IE.
comment:4 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
Replying to garry.yao:
There were actually two separated problem described in the description:
- The line break display as a space: This's been a browser rendering bug from IE, we've spotted this wrong behavior on other blocks as well, even when enterKey is creating <br>. We're hardly possible to resolve this issue at the moment;
Thing changed, I've just find a workaround for this issue, a new patch will come soon.
Changed 15 years ago by
Attachment: | 3949_2.patch added |
---|
comment:5 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
comment:6 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
Replying to garry.yao:
- The line break display as a space: This's been a browser rendering bug from IE, we've spotted this wrong behavior on other blocks as well, even when enterKey is creating <br>. We're hardly possible to resolve this issue at the moment;
I think we could find a way to fix it, as V2 works well in this sense.
Changed 15 years ago by
Attachment: | 3949_3.patch added |
---|
comment:7 Changed 15 years ago by
Keywords: | Review+ added; Review- removed |
---|
comment:8 Changed 15 years ago by
Fred's pointing to a experienced way of fixing the IE rendering issue, it should be used rarely but a treatment for this case.
comment:9 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
There were actually two separated problem described in the description: