Opened 13 years ago
Closed 13 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: |
Description
After an <enter> key insertHtml fails in Firefox.
Reproduce:
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;
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.

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