﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9443	Firefox error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]	raz_atoth		"Ways to replicate the bug:
1) Have a button,which once clicked inserts html text in the ck editor by calling:
var ck=CKEDITOR.instances[editor_id];
if(ck)
   ck.insertHtml(text);
2) Set CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;
3) Press the Enter key in the editor to create a new line,then press the button to insert the text.

At this point Firefox throws this error:
Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]
Source File: ckeditor.js
Line: 100

After some digging it seems this code is the culprit:
N.document.$.execCommand('inserthtml',false,E);

From my testing it seems the error message doesn't pop up if  CKEDITOR.ENTER_P is used or if (CKEDITOR.ENTER_BR)-after pressing Enter key-some additional text is inputed in the editor.

This bug seems to affect only Firefox,apparently,it works just fine with Chrome. I haven't tested it with IE/Opera/Safari."	Bug	closed	Normal		General		fixed	Firefox VendorFix	
