﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9537	[FF] insertHtml triggers NS_ERROR_FAILURE and is not succesful in some conditions	Cornel Rebegea		"After an <enter> key insertHtml fails in Firefox.

Reproduce:[[BR]]

  1) a ckeditor instance active, type something[[BR]]

  2) hit enter[[BR]]

  3) trigger  a insertHtml via javascript (button will do) [[BR]]

sample code (run this in FF 16):

{{{
<input type=""button"" id='testbtn' value=""test"" onclick=""console.log('click');
                        var textarea = CKEDITOR.instances.save_content;
                        textarea.insertHtml('value');""/>
<script type=""text/javascript"" src=""vtc5_working/include/ckeditor/ckeditor.js""></script>
<textarea  style=""width:90%;height:200px;"" name=""content"" id=""save_content"" class=""detailedViewTextBox""> {$task->content} </textarea>

<script type=""text/javascript"" defer=""1"">
	var textAreaName = 'save_content';

    CKEDITOR.replace( textAreaName,	{
	} ) ;

</script> 
}}}


check the console:


{{{
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]
[Bei diesem Fehler anhalten] 	

...=$|<\/body>)/gi,n=d.walker.whitespaces(true);function o(C){return C.isBlockBound...

ckeditor.js (Zeile 98)
}}}

If you type something after the enter key all goes as normal.
"	Bug	closed	Normal		General	3.6.3	duplicate		
