﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11948	No range in selection after inline editor init	Marek Lewandowski		"Seems that inline editor does not create a (collapsed) range after its (editor) initialization, like it does in case of classic editor. As a result commands, which expects to have a range, will throw exceptions and work incorrectly.

1. open any sample with CKEditor in **inline / divarea** mode (i.e. samples/inlineall.html)
2. evaluate following code in JavaScript console:
{{{
CKEDITOR.instances.editor1.getSelection().getRanges().length
}}}

'''Expected result:'''[[BR]]
1

'''Current result:'''[[BR]]
0

A simple UC which causes the problem would be inserting a link to editor:

1. open sample page with editor
2. execute following code in JavaScript console:
{{{
CKEDITOR.instances.editor1.execCommand( 'link' )
}}}
3. fill URL field with some random domain
4. click ok

'''Expected result:'''[[BR]]
link should be inserted to the editor

'''Current result:'''[[BR]]
exception is thrown:
{{{Uncaught TypeError: Cannot read property 'collapsed' of undefined}}}

or FF:
{{{TypeError: range is undefined}}}

Tested in: Chrome, FF"	Bug	closed	Normal		General	4.0 Beta	invalid		
