RadEditor for MOSS prevent inline CSS

6 posts, 0 answers
  1. Ian
    Ian avatar
    29 posts
    Member since:
    Jun 2009

    Posted 04 Mar 2010 Link to this post

    I'm having an issue with the RadEditor for MOSS. I've confirmed that one of the Telerik control  emitted Javascripts seems to be adding inline CSS style to the top level div of the editor, namely min-height, min-width. This is causing layout issues on my page. My question is why is it doing this, and how do I prevent this from happening?

    <div style="height: 300px; width: 100%; min-height: 300px; min-width: 1133px;" class="RadEditor Default reWrapper ms-input" id="ctl00_PlaceHolderMain_EditModePanel2_EditLessonPlan_GoalField_ctl00">

    Thanks,
    -James





  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Mar 2010 Link to this post

    Hi james,

    Could you confirm exactly which version of RadEditor for MOSS you are using? This will help me to provide you with the correct solution of the problem.

    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. Ian
    Ian avatar
    29 posts
    Member since:
    Jun 2009

    Posted 05 Mar 2010 Link to this post

    I'm using version 5.6.0.0.
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 09 Mar 2010 Link to this post

    Hi James,

    The min-height and min-width are part of the rendering of RadEditor. You can use the OnClientLoad event of the editor and remove them with javascript (we do not recommend this). However if you do this the editor will not behave correctly. What I suggest you to do is change your layout a little bit. Probably put the editor in a div element with css property clear set to both.


    Best wishes,
    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.
  5. Ian
    Ian avatar
    29 posts
    Member since:
    Jun 2009

    Posted 09 Mar 2010 Link to this post

    Thanks - could you please expound in detail on what specifically will no longer behave properly by removing this css? So far in my tests it doesn't seem top have any effect, and I'd like to know what the potential effects are.

    -James
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 10 Mar 2010 Link to this post

    Hi james,

    You might experience problems when you toggle between Html and Design modes of the editor. Some tools might not appear on their places.

    Unfortunately I can not tell you exactly what behavior you can expect.

    Sincerely yours,
    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