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

Setting width and hight for the editor

6 Answers 75 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Ulf Grindstad
Top achievements
Rank 1
Ulf Grindstad asked on 05 Mar 2010, 01:08 PM
Is there some way I can control width and height of the Editor on a publish page ?



6 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 05 Mar 2010, 01:42 PM
Hi Ulf Grindstad,

Could you confirm which version of RadEditor for MOSS you are using? I will need this in order to provide you with the correct instructions.

Kind regards,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ulf Grindstad
Top achievements
Rank 1
answered on 08 Mar 2010, 08:55 AM
From my web.config: 
 <SafeControl Assembly="Telerik.Web.UI, Version=2009.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Editor" TypeName="*" Safe="True" />


0
Ulf Grindstad
Top achievements
Rank 1
answered on 08 Mar 2010, 08:08 PM
Where you able to look into this ?

0
Stanimir
Telerik team
answered on 09 Mar 2010, 08:13 AM
Hello Ulf Grindstad,

In order to set the width and the height of RadEditor for MOSS you need to modify the respective ConfigFile.xml or ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder. For example add the following lines:
<property name="Width">200</property>
<property name="Height">200</property>

Also if you are using the editor in WCM scenario an you have replaced the original RichHtmlField field (http://www.telerik.com/help/aspnet-ajax/using-radeditor-in-web-content-management-scenario.html) you can use the DisplayWidth and DisplayHeight properties of RadHtmlField. For example:
<telerik:RadHtmlField id="Content" FieldName="PublishingPageContent" DisplayWidth="200" DisplayHeight="400" runat="server"></telerik:RadHtmlField>
However you specify the width and height in the ConfigFile.xml the DisplayWidth and DisplayHeight properties will be overwritten.


Kind regards,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ulf Grindstad
Top achievements
Rank 1
answered on 09 Mar 2010, 09:27 AM
Like this ?

<configuration>
  <system.web>
    <compilation batch="true" >
    </compilation >
    <httpHandlers>
      <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a" />
    </httpHandlers>
    <customErrors mode="Off" />
    <authorization>
      <allow users="*" />
    </authorization>
    <httpModules>
      <clear />
    </httpModules>
<properties>
<property name="Width">200</property>
<property name="Height">200</property>
</properties>
  </system.web>


Cant get it to work...

0
Stanimir
Telerik team
answered on 09 Mar 2010, 09:38 AM
Hi Ulf,

You need to modify the ConfigFile.xml or ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder, not the web.config file.


Greetings,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
WebParts for SharePoint
Asked by
Ulf Grindstad
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Ulf Grindstad
Top achievements
Rank 1
Share this question
or