Setting width and hight for the editor

7 posts, 0 answers
  1. Ulf Grindstad
    Ulf Grindstad avatar
    4 posts
    Member since:
    Mar 2010

    Posted 05 Mar 2010 Link to this post

    Is there some way I can control width and height of the Editor on a publish page ?



  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Mar 2010 Link to this post

    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.

  3. Ulf Grindstad
    Ulf Grindstad avatar
    4 posts
    Member since:
    Mar 2010

    Posted 08 Mar 2010 Link to this post

    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" />


  4. Ulf Grindstad
    Ulf Grindstad avatar
    4 posts
    Member since:
    Mar 2010

    Posted 08 Mar 2010 Link to this post

    Where you able to look into this ?

  5. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 09 Mar 2010 Link to this post

    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.
  6. Ulf Grindstad
    Ulf Grindstad avatar
    4 posts
    Member since:
    Mar 2010

    Posted 09 Mar 2010 Link to this post

    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...

  7. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 09 Mar 2010 Link to this post

    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.
Back to Top