Opened 12 years ago
Last modified 11 years ago
#10034 confirmed Bug
CKEditor 4 Inline editing - Clean trash after destroy
Reported by: | Roy Shoa | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 Beta |
Keywords: | Cc: |
Description
Hi, I am using the CKEditor 4 Inline editing and as i sow its not cleanning all the trash after using destroy.
Code before i edit it:
<div id="myId">Text text text</div>
Code after i edit it and use destroy to remove the CKEditor instance:
<div id="myId" class="cke_focus" style="position: relative;">Text text text</div>
As we can see the class of "cke_focus" and the "position:relative" are not removed when i use the destroy.
Are there is a way to remove all the CKEditor trash?
Attachments (1)
Change History (8)
comment:1 Changed 12 years ago by
Keywords: | cke_focus position relative destroy removed |
---|---|
Status: | new → pending |
Version: | 4.0.1 |
- Please tell us in which browser you are getting this
- Please tell us what are exact steps to reproduce this problem in demo (it is important to reproduce this problem in editor without any customizations)? I have tried but with no error results.
- If possible please provide reduced sample showing the problem (HTML file that can be put in samples folder and will show the problem)
comment:2 Changed 12 years ago by
Status: | pending → confirmed |
---|---|
Version: | → 4.0 Beta |
OK I got it.
To reproduce:
- Open attached sample code (put it in samples folder). I have added
window.setTimeout(function(){CKEDITOR.instances.editor1.destroy()}, 5000);
- Click on first editor on the right
- Wait.
- Once editor gets destroyed, inspect HTML. Both
class="cke_focus" style="position: relative;"
are present.
Problem can be reproduced from CKEditor 4.x (v4) beta.
Changed 12 years ago by
Attachment: | inlineall2.html added |
---|
comment:4 follow-up: 5 Changed 12 years ago by
Do you have any fixversion for this bug ? which is really important on our side to complete our upgrade.
We have tested 4.1.2 but we still have this issue.
comment:5 follow-up: 6 Changed 12 years ago by
Replying to fbassy:
Do you have any fixversion for this bug ? which is really important on our side to complete our upgrade.
We have tested 4.1.2 but we still have this issue.
I remove it using jQuery after I destroy the editor:
o.removeClass('cke_focus');
o.css({ position : });
comment:6 Changed 12 years ago by
Replying to royshoa:
Replying to fbassy:
Do you have any fixversion for this bug ? which is really important on our side to complete our upgrade.
We have tested 4.1.2 but we still have this issue.
I remove it using jQuery after I destroy the editor:
o.removeClass('cke_focus');
o.css({ position : });
I did follow by the description of http://dev.ckeditor.com/ticket/10420 (similar with your way), but it does not work well => the border is still appears.
comment:7 Changed 11 years ago by
Same problem on my side. Any news about this problem? When can it be fixed?