﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16825	[Chrome] Error thrown when destroying focused inline editor	lb009	Tade0	"== Steps to reproduce ==

1. Focus is on the editor, not blur
2. Click jQuery UI Dialog cancel button ,then fire close event:
{{{
   close: function () 
   {
       editor.destroy();
       editor = null;
   }
}}}

3. 
 Uncaught TypeError: Cannot read property 'isInline' of null
    at CKEDITOR.focusManager.d (ckeditor.js:238)

    at CKEDITOR.focusManager.<anonymous> (ckeditor.js:238)

    at ckeditor.js:28 



== Actual result ==
After call editor.destroy(),editor.editable() return null



{{{
// Blink browsers leave selection in `[contenteditable=true]`
// when it's blurred and it's neccessary to remove it manually for inline editor. (#13446)

if ( CKEDITOR.env.chrome && editor.editable().isInline() ) {
editor.window.$.getSelection().removeAllRanges();
}
}}}

== Other details (browser, OS, CKEditor version, installed plugins) ==
Chrome 55.0.2883.87 m

CKEditor 4.6.2"	Bug	closed	Normal	CKEditor 4.7.0	Core : Focus	4.6.2	fixed	Support	
