Opened 16 years ago
Closed 16 years ago
#3657 closed Bug (fixed)
'Select All' result in content change
Reported by: | Garry Yao | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 3.0 |
Component: | Core : Styles | Version: | |
Keywords: | Confirmed Review+ | Cc: |
Description
Reproducing Procedures
- Open the replace by class example page in FF with the following content;
<ul><li>item</li></ul>
- Click on 'Select All' button, after this step, the selection now is actually as:
^<ul><li>item</li></ul>^
- Expected Result: The document content remain unchanged.
- Actual Result: There's an paragraph established before the list:
<p> <br /> </p> <ul> <li> item</li> </ul>
Attachments (5)
Change History (15)
Changed 16 years ago by
Attachment: | 3657.patch added |
---|
comment:1 Changed 16 years ago by
Keywords: | Review? added |
---|---|
Status: | new → assigned |
comment:2 follow-up: 3 Changed 16 years ago by
Adding a new patch since it's possible in IE to have the following range where the previous patch doesn't covered:
<p>paragraph1</p> ^ <p></p>
comment:3 Changed 16 years ago by
Replying to garry.yao:
Adding a new patch ...
After some investigation, fixing this issue will break other more general TC, so the original patch is preferred.
Changed 16 years ago by
Attachment: | 3657_2.patch added |
---|
comment:4 Changed 16 years ago by
Adding a new patch to support yet another interesting TC which has been found when investigating #3671, here the selected element become a fake, block-like element like "Page Break", we can distinguish it with function CKEDITOR.dom.element::isBlockBoundary, but I'm proposing to rename this function to avoid ambiguity.
[ <img ... / > //This is a 'block-like' fake element ]
comment:5 Changed 16 years ago by
Another new patch with two updates;
- use CKEDITOR.dom.selection::getSelectedElement instead of path.lastElement to check the selected element;
- Free the padding block for table in IE to avoid DUP with the IE native fix.
Changed 16 years ago by
Attachment: | 3657_3.patch added |
---|
comment:6 Changed 16 years ago by
Two more updates:
- Padding block for table is even not necessary for Webkit!
- The correct checking should be attribute '_cke_bogus' on L140.
Changed 16 years ago by
Attachment: | 3657_4.patch added |
---|
comment:7 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
I think a simpler fix could be available. Actually, the fixing code needs to be execute exclusively over collapsed selections, so i should be enough to simply check for it.
comment:8 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
Changed 16 years ago by
Attachment: | 3657_5.patch added |
---|
comment:9 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
Regression bug of [3549], adding the 'last path element is not block also' condition.