0

We have a RTE editor based on htmlarea which consists of content with editmode enabled inside an iframe. The question is how to automatically bring the focus into the editor?

4

1 回答 1

2

id在哪里:IFRAMEmyRTE

var iframe = document.getElementById("myRTE");
if ( iframe && iframe.contentWindow )
   iframe.contentWindow.focus();
于 2008-09-21T21:47:29.610 回答