Opened 11 years ago

Closed 11 years ago

#9537 closed Bug (duplicate)

[FF] insertHtml triggers NS_ERROR_FAILURE and is not succesful in some conditions

Reported by: Cornel Rebegea Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.3
Keywords: Cc:


After an <enter> key insertHtml fails in Firefox.


1) a ckeditor instance active, type something

2) hit enter

3) trigger a insertHtml via javascript (button will do)

sample code (run this in FF 16):

<input type="button" id='testbtn' value="test" onclick="console.log('click');
                        var textarea = CKEDITOR.instances.save_content;
<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,	{
	} ) ;


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.

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

DUP of #9443.

This is Firefox issue that may be fixed in FF17 (We will find out in few days).

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy