This is a migrated thread and some comments may be shown as answers.

No focus on Editor in Popup.

1 Answer 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark Thomas
Top achievements
Rank 1
Mark Thomas asked on 10 Dec 2007, 02:20 PM
Hi,

Thanks for some great products!

I am using the new RadEditor in a ModalPopupExtender, but when I attempt to setFocus in the javascript method attached to the button that shows the editor the focus is on the toolbar and not the Content.

        function edit( _controlID )  
        {  
            controlID = _controlID;  
            var newVal = $get("ctl00_MainContent_txt" + controlID).innerHTML;  
            var editor = $find("ctl00_MainContent_RadEditor1");  
            editor.set_Html(newVal);  
            editor.setFocus();  
        }  
 


Is there a way I can do this? I expect it has something to do with the order of code, but I don't know how to fix this.

Regards,
Mark Thomas.

1 Answer, 1 is accepted

Sort by
0
Mark Thomas
Top achievements
Rank 1
answered on 11 Dec 2007, 12:40 PM
Hi,

Fixed it. I changed the implementation to use one modalPopupExtender instaead of one for every Button and .show() in the javascript and it worked.
I don't know if it has anything to do with the fact that the Extender are created dynamically or what...

Regards,
Mark Thomas.
Tags
Editor
Asked by
Mark Thomas
Top achievements
Rank 1
Answers by
Mark Thomas
Top achievements
Rank 1
Share this question
or