﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7836	In Firefox, a <br /> is inserted in an empty text area when using editor.focus() on initially hidden editors	Niek Kouwenberg		"In our CMS, the CKEditor is sometimes loaded in the background, in a hidden div (part of a tabset). Although hidden, the editor instance is already created and works fine.

When displaying the DIV, I want to focus the editor, and do so by using editor.focus(). This will put focus on the editor. This works correctly for and empty editor or one with content, and works correctly in all browsers.

The only exception is Firefox (tested on both version 3 and 4), which adds the following content on a editor without any content:
{{{
<p><br />
	&nbsp;</p>
}}}

The result being an empty editor, with a <br /> tag in it. In addition, focus is placed on the second line, but when starting to type it will place all text on the first line, NOT removing the second line. You just can't type anything on the second line.

This issue has been present since at least 3.5.3.

----

Steps to reproduce:
1. Create a DIV with display: none;
2. Place a textarea inside, without any content
3. Replace the textarea with a CKEditor
4. Show the DIV (it will not have focus)
5. Focus the editor using editor.focus()
6. The code mentioned above is inserted into the editor

Expected result:
6. The editor is focused, content remains empty

----

Does not apply for:
- other browsers than Firefox
- editor with existing content
- manually focusing the editor by clicking on it
- editors not hidden when created"	Bug	confirmed	Normal		General	3.3		Firefox	
