I am working with coldfusion and the FCKEditor. How do i grab focus on the text area of the FCKEditor? Please take a look at the simplified cf code attached. When i click the button to grab focus on the text area, i get the following js error:
"Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept focus."
The text area is not invisible, disabled, and is a textarea so there's no reason why it shouldn't accept focus. If you have any ideas then correcting the attached cf code such that clicking the button DOES make FCKEditor text area grab focus would give me something to work with. Other suggestions are also welcome :)
var x = document.getElementById('textarea');
<cftextarea name="textarea" richtext="yes" height="300" />
<input type=button onclick="dothis();" value="focus" />