Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Step 1 don't have any text selected and have not clicked anywhere in the content box yet.

Step 2 click the format dropdown

Step 3 Get the messagebox quoted below

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) 
[nsIDOMNSHTMLDocument.execCommand]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  
location: "JS frame :: http://www.codeproject.com/script/htmlArea/htmlarea.js :: anonymous :: line 2798"  data: no]
by execCommand(formatblock); 

Same result in FF 3.5.2.

Doesn't happen if you click in the content box first, even when nothing is selected or it is blank.

Further info: If you click in a PRE block then select - Language- then you see an 'undefined' entry at the top. I think this is the culprit.

Posted
Updated 3-Sep-09 15:53pm
v4

1 solution

This is a great firefox error that essentially means "can't select an item in a dropdown with that index" See this post.

I've updated the lang def javascript file to include the missing entries. It should be good now.

 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900