Invalid behavior when pressing enter on selected text
I managed to confirm this on FF 3.5.5. I cannot reproduce it on IE8.
It happens only when <br />
is at the end of line (regardless of enterMode).
Steps to reproduce
Paste the following text in soruce mode:
TEST1 TESTESTTEST T1<br />
TEST2 TESTESTTEST T2<br />
TEST3 TESTESTTEST T3<br />
- switch to WYSIWYG mode
- put the cursor after TEST2
- press shift-end, to select everything until the end of the line
- then, press enter
- the content suddenly looks like this :
TEST1 TESTESTTEST T1
TEST2
TESTESTTEST T2
TEST3 TESTESTTEST T3
Where you would expect it to be something like :
TEST1 TESTESTTEST T1
TEST2
TEST3 TESTESTTEST T3
Change History (10)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Keywords: |
Firefox added
|
Milestone: |
→ CKEditor 3.2
|
Version: |
→ SVN (CKEditor)
|
Keywords: |
Review? added
|
Owner: |
set to Garry Yao
|
Status: |
new →
assigned
|
Keywords: |
Review- added; Review? removed
|
Keywords: |
Review? added; Review- removed
|
Keywords: |
Review+ added; Review? removed
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
There's a logic hole in CKEDITOR.dom.range::trim method.