Opened 12 years ago
Closed 12 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: |
Description
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:
$editorElement.blur();
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.
I should note that I am using CKEditor 4.1.1