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

[Solved] SetSize

2 Answers 212 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark Davison
Top achievements
Rank 1
Mark Davison asked on 25 Sep 2007, 10:25 AM
Hi,

I am trying to integrate the new editor into my application. In the old editor, I could use a SetSize method to set teh size of the editor as required. I do not seem able to do this in the new editor? Is there a way?

Also, what css class entry would I need to change the background color of the content area?

Regards,

Mark

2 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 25 Sep 2007, 12:25 PM
Hi Mark Davison,

RadEditor "Prometheus" uses setSize method for setting the size of the editor. Use the following code to see how to use the method:
    
<script type="text/javascript">   
   function OnClientLoad(editor, args)  
   {   
        editor.setSize(400, 400);  
   }  
</script> 
<telerik:radeditor runat="server" OnClientLoadOnClientLoad=OnClientLoad ID="RadEditor1"></telerik:radeditor> 

You can also use this link for reference on Changes and backwards capability. The missing info about the setSize() method will be added soon.

In RadEditor "Prometheus" the skins are integrated in the dll file. For this reason, you can set the background color only using javascript. You can do this in the following way:
    editor.get_ContentArea().style.backgroundColor = "red";
We plan to add a property to the editor which you will be able to use for setting the background color, but at the moment RadEditor "Prometheus" does not provide this.

Kind regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark Davison
Top achievements
Rank 1
answered on 25 Sep 2007, 12:32 PM
Sophy,

Thank you! Perfect!

Regards,

Mark
Tags
Editor
Asked by
Mark Davison
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Mark Davison
Top achievements
Rank 1
Share this question
or