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

[Solved] Using ToolsFile causes Content Area to become very small

1 Answer 95 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kent Henderson
Top achievements
Rank 1
Kent Henderson asked on 21 Apr 2009, 06:10 PM
I am trying to create a radEditor without any content so that the user can enter a new record and save that to the database.  I want to use a xml file for the toolbar so that it will be easy to change in the future. However, when I set the RadEditor to use ToolsFile without any content in the control, it pushes the content area to the bottom of the control and makes it a small box that is almost impossible to click on and is not usefull at all to the user.  If I create the tool bar in code without in content the content area spans the entire control which is what I was hoping for with using the toolsfile as well. 

This is what my control looks like - there is really nothing too it.

 

<telerik:radeditor runat="server" ID="RadEditor1" ToolsFile="~/RadControls/Editor/Tools.xml" Width="200px" Height="200px" ToolbarMode="showOnFocus">

 

 

<Content>

 

 

 

</Content>

 

 

</telerik:radeditor>

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Apr 2009, 01:13 PM
Hi Kent,

You have not send a screenshot of the observed behavior, the configuration of the editor as well as a screenshot of the problem, but I created and attached a sample project for you which demonstrates how to configure the editor in your scenario.

Basically, you should hide the mode buttons by setting EditModes="Design".  After that hide the editor's modules from the Tools.xml file by deleting the <modules> tags. In addition you can control the toolbar width via the ToolsWidth property.

Please, test the attached project and if you still experience any problems, modify it and send it back to me via a support ticket. I will examine it and provide a solution.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Kent Henderson
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or