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

[Solved] Toolbar shrunk to nothing when editor is embedded in TabPanel

5 Answers 126 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lerac
Top achievements
Rank 1
Lerac asked on 04 Feb 2008, 04:50 PM
I have a RadEditor inside an Ajax tab panel (AjaxControlToolkit -> TabContainer -> TabPanel). Property ToolbarMode is set to ShowOnFocus

<

rad:RadEditor ID="ed1" ToolbarMode="ShowOnFocus" runat="server"/>

When the editor is clicked, the toolbar shows as a vertical line and none of the tools are shown. The same code works fine (toolbar shows as expected) when the editor is not inside a TabPanel.

How do I fix this issue? Thanks.

5 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 06 Feb 2008, 08:04 AM
Hi Lerac,

Please, use the following code called on the editor's OnClientLoad event to achieve the desired behavior:
<script type="text/jscript">  
    function OnClientLoad(editor, args){  
        var wnd = editor.get_toolAdapter().get_toolbarHolder();          
        wnd.setSize(700, null);//here set the desired width  
        wnd.hide();  
    }   
</script> 

Note that for this code to work, you need to use  the latest version of RadEditor "Prometheus" (Q3 2007 SP1).




Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lerac
Top achievements
Rank 1
answered on 07 Feb 2008, 05:38 PM
Thanks.
0
George
Telerik team
answered on 08 Feb 2008, 01:22 PM
Hi Lerac,

I am glad that the issue you were facing is now resolved.

Please do not hesitate to contact us if you have any additional questions.

It was pleasure for me to assist you. Wish you a great day,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
A
Top achievements
Rank 1
answered on 16 Jun 2008, 07:02 PM
Hi,
I am seeing the same issue and I tried the solution above however the wnd variable is undefined when the code is executed in the OnClientLoad event of the RadEditor.
 
I am using the 2008.1.611.35 release (emailed to me from support).
I am using the ShowOfFocus toolbarmode as well and am creating the RadEditor programmatically in CodeBehind of the ASPX page.

Is there any way I can call this code when the user clicks on the RadEditor?  I tried assigning a OnFocus event via server side code in RadEditor.PreRender()  MyEditor.attributes.Add("onfocus", "MyHandler();") but it is not being fired.

Thanks, Andy
0
Lini
Telerik team
answered on 18 Jun 2008, 11:51 AM
Hi Andy,

The original issue (toolbar width 0) has been fixed and the fix will be available tomorrow as part of the RadControls Q1 2008 Service Pack 2 release.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Lerac
Top achievements
Rank 1
Answers by
George
Telerik team
Lerac
Top achievements
Rank 1
A
Top achievements
Rank 1
Lini
Telerik team
Share this question
or