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

RadEditor for MOSS prevent inline CSS

5 Answers 111 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 04 Mar 2010, 07:58 PM
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





5 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 05 Mar 2010, 07:30 AM
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.
0
Ian
Top achievements
Rank 1
answered on 05 Mar 2010, 06:30 PM
I'm using version 5.6.0.0.
0
Stanimir
Telerik team
answered on 09 Mar 2010, 09:06 AM
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.
0
Ian
Top achievements
Rank 1
answered on 09 Mar 2010, 05:40 PM
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
0
Stanimir
Telerik team
answered on 10 Mar 2010, 04:15 PM
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.
Tags
WebParts for SharePoint
Asked by
Ian
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Ian
Top achievements
Rank 1
Share this question
or