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

RADEditorSharePoint Apply CSS Appearing More than Once

1 Answer 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Roopesh
Top achievements
Rank 1
Roopesh asked on 21 Jun 2012, 09:43 AM

Telerik Team,

We are using 6.3.1 version of RAD Editor for SharePoint and using the complete toolbar provided by telerik.

Here the issue is about "Apply CSS Styles" dropdown, where the items are repeated atleast for 4 items. Attaching the document with the screenshot

We are following the approach given in the article http://www.telerik.com/help/aspnet-ajax/moss-sp2010-css_styles.html. Had our Custom Styles defined in one of the CSS file by overriding the classes in the below file.

/Program Files/Common Files/Microsoft Shared/web server extensions/14/Template/Layouts/1033/Styles/HtmlEditorStyles.css - Even in that case it should display twice - But it is displaying about 4 items.

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jun 2012, 05:07 AM
Hi,

Thank you for reporting this behavior.

We will research what is causing it and fix it if it appears related to RadEditor.

Currently, you can render the content area of RadEditor for SharePoint 2010 as an editable iframe and set the CssFiles property to point to your own css file. Therefore only the classes defined in the css file will be loaded in the Apply Class dropdown:

ConfigFile xml file:

<property name="ContentAreaMode">Iframe</property>

ToolsFile.xml file:

<cssFiles>
  <item
name="/_wpresources/RadEditorSharePoint/6.3.1.0__1f131a624888eeed/Resources/customstyles.css"/>
</
cssFiles>

The CssFiles imports a CSS file in the head of the editable iframe content area of RadEditor. This means that this property works only when the content area is rendered as an iframe. If we import a css file when the div mode is enabled this will ruin the design of the entire page, because the div content area is part of the page. The iframe is another document.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Roopesh
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or