Opened 10 years ago

Closed 10 years ago

#10420 closed Bug (duplicate)

class and style properties not reset when editor.destroy() is called

Reported by: Henrik Helmø Larsen Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


This case is a little like case #10409. I call:

editor.destroy( true );

when the ESC key is pressed when in inline editing mode. This results in the toolbar being removed. But the cke_focus class is still present on the DIV afterwards as well as the style="position: relative;". In order to clean this up I call:

$editorElement.removeClass( 'cke_focus' );
$editorElement.attr( 'style', '' );

Furthermore the cursor is still blinking inside the DIV - so I call:


To remove focus. I think the above 3 things should be done by CKEditor...
The editor also doesn't undo editing when editor.destroy( true ) is called - true indicating that noUpdate should be done - I will file this error in another Ticket.
I am using Chrome 26.0.1410.65 on a Win7 64bit machine.

Change History (2)

comment:1 Changed 10 years ago by Henrik Helmø Larsen

I should note that I am using CKEditor 4.1.1

comment:2 Changed 10 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

DUP of #10034

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy