Ticket #10034 (confirmed Bug)

Opened 19 months ago

Last modified 13 months ago

CKEditor 4 Inline editing - Clean trash after destroy

Reported by: royshoa 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

inlineall2.html (9.9 KB) - added by j.swiderski 19 months ago.

Change History

comment:1 Changed 19 months ago by j.swiderski

  • Keywords cke_focus,position relative,destroy removed
  • Status changed from new to pending
  • Version 4.0.1 deleted
  1. Please tell us in which browser you are getting this
  2. 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.
  3. 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 19 months ago by j.swiderski

  • Status changed from pending to confirmed
  • Version set to 4.0 Beta

OK I got it.

To reproduce:

  1. Open attached sample code (put it in samples folder). I have added window.setTimeout(function(){CKEDITOR.instances.editor1.destroy()}, 5000);
  2. Click on first editor on the right
  3. Wait.
  4. 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 19 months ago by j.swiderski

comment:3 Changed 16 months ago by j.swiderski

#10420 was marked as duplicate.

comment:4 follow-up: ↓ 5 Changed 14 months ago by 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.

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 14 months ago by 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 : });

comment:6 in reply to: ↑ 5 Changed 14 months ago by tanhq

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 13 months ago by minhdv81

Same problem on my side. Any news about this problem? When can it be fixed?

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy