﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6590	q is null	PsyTech		"Hello,

I am getting a weird problem with firefox. Everything seems to be working, yet I'm getting an error ""q is null"". Going through the minified code, it shows this line:

var q=r.document.getSelection().getNative();
q.removeAllRanges();
q.addRange(p);

this translates into the unminified code in the plugin.js to about line 1363:
var selection = this.document.getSelection().getNative();
selection.removeAllRanges();
selection.addRange( nativeRange );

From this bug, I can assume that the selection variable is null. Is there a reason why this is assumed to never be null?

It seems to happen mostly when the ckeditor field is not displayed on the screen (i.e. in a div with a style=""display:none"", and I'm calling a CKEDITOR.replace() on it.

Putting a if(q!=null) around the 2 statements prevents this error."	Bug	closed	Normal		General		duplicate		
