Opened 5 years ago

Last modified 4 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)

inlineall2.html (9.9 KB) - added by Jakub Ś 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by Jakub Ś

Keywords: cke_focus position relative destroy removed
Status: newpending
Version: 4.0.1
  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 5 years ago by Jakub Ś

Status: pendingconfirmed
Version: 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 5 years ago by Jakub Ś

Attachment: inlineall2.html added

comment:3 Changed 4 years ago by Jakub Ś

#10420 was marked as duplicate.

comment:4 Changed 4 years ago by Franck

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 ; Changed 4 years ago by Roy Shoa

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 4 years ago by Ha Quang Tan

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 4 years ago by Minh Dang

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

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