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

Rad Editor remove classes from the "Apply CSS"

5 Answers 192 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 03 Aug 2011, 03:58 PM
Hi support,

I had added the TableLayoutCssFile property to the <telerik:RadEditor ID="Editor" Runat="server" ...> to customize the "Css Class Layout" dropdown (according to http://www.telerik.com/community/forums/aspnet-ajax/editor/table-wizard-css-style-selector.aspx). Everything works good, but this classes are visible in the "Apply Css" dropdown.

I don't want them to be visible but at the same time I want to have an opportunity to customize the "Apply Css" dropdown.

I found a workaround. It is modification of the <classes> section, but using this method meaning that there are 2 places that I need to edit, which is outside the requirement.

Please advise.

5 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 08 Aug 2011, 06:07 AM
Hi Antony,

Unfortunately, there is no alternate approach to handle this case. By design, ApplyClass dropdown is populated with all CSS classes registered in RadEditor's content area (either as inline CSS or as external file).

All the best,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Rob
Top achievements
Rank 1
answered on 18 Sep 2012, 01:56 PM
Is there anything in the works to have the Table Wizard use the formatSets from a Tools.xml file?
0
Dobromir
Telerik team
answered on 21 Sep 2012, 08:33 AM
Hi Rob,

At present, the FormatSets configurations in the ToolsFile are related to the FormatSets tool and currently we do not plan to include this tool in the TableWizard dialog. Nevertheless, I have contacted RadEditor's developers regarding this request and we will consider such improvement.

All the best,
Dobromir
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.
0
Kevin
Top achievements
Rank 1
answered on 16 Oct 2012, 07:45 PM
Bump on this. I would love to have the ability to assign a separate (scaled down) css file that will be the only one that is shown in the Apply CSS Class dropdown list.  This would make it much easier to hide classes that have no meaning or reference to a client when we are using the radeditor for them.  So basically let us override the apply css classes object and by default it applies all css classes from the content window in it.  That would be outstanding.

Thanks,
Kevin
0
Rumen
Telerik team
answered on 17 Oct 2012, 02:55 PM
Hi,

You can use the CssFiles property of RadEditor to import a css file, the classes of which will be only populated in the ApplyClass dropdown. See this article: External CSS Files. This property works in ContentAreaMode = "Iframe" only.

Kind 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
Antony
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Rob
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or