id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 8264,Inserting HTML into CKEditor causes NS_ERROR_FAILURE,eliotsykes,,"Using CKEditor 3.6.1 in Firefox 5.0 on Ubuntu, I get this error when I try to drag and drop some HTML into CKEditor (WYSIWYG mode) (I'm using prototypejs to handle the dragging and dropping): {{{ uncaught exception: [Exception... ""Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]"" nsresult: ""0x80004005 (NS_ERROR_FAILURE)"" location: ""JS frame :: http://myhost/ckeditor/ckeditor.js :: q :: line 8765"" data: no] }}} I also ran this with CKeditor's unminified source and the problem occurs at line 125 of plugins/wysiwygarea/plugin.js: {{{ this.document.$.execCommand( 'inserthtml', false, data ); }}} After the error occurs once, everything works fine. I can drag and drop images and they all work without any errors. I'm not sure of the exact reason for this error, I couldn't put together a test case to add to this issue unfortunately, however I wanted to report it in case others encounter this error and can provide more details or if they just want to know a workaround. This error is similar to the error reported here, so that's how the workaround below was found: http://dev.ckeditor.com/attachment/ticket/5660/5560.patch Add this JavaScript to fix the issue {{{ CKEDITOR.on('instanceReady', function(e) { var editorInstance = e.editor; // Refresh 'contentEditable' var body = editorInstance.document.getBody(); body.setAttribute( 'contentEditable', false ); body.setAttribute( 'contentEditable', true ); }); }}} The bug also happens with the nightly build (Revision number: 7199) taken on August 15th 2011.",Bug,closed,Normal,,General,,expired,Firefox,