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

Align Toolbars

1 Answer 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Highrad
Top achievements
Rank 2
Highrad asked on 26 Dec 2008, 09:29 PM
Hi,

I want to align all of the the toolbars on the editor towards the center. How can I do that?

I have a call out for the background color change here:

<script type="text/javascript">  
   function OnClientLoad(editor, args)  
   {  
      var style = editor.get_contentArea().style;  
      style.backgroundImage = "none";  
      style.backgroundColor = "white";  
   }  
    </script>  

Or do I make the change in the toolsfile.xml?

Thanks, Cam

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 29 Dec 2008, 12:59 PM
Hello Highrad,

It is not possible to center the toobars using CSS (or script).
It is essential for the proper rendering/positioning of the toolbars that they have a float:left setting - this is how they "fill" the available toolbar area in the most efficient manner and break to new lines automatically if the editor size is changed (enlarged or reduced).

We are not able to provide a suggestion how toolbars can be centered without it messing up their look and feel.

Best regards,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Highrad
Top achievements
Rank 2
Answers by
Tervel
Telerik team
Share this question
or