Rad Editor remove classes from the "Apply CSS"

6 posts, 0 answers
  1. Antony
    Antony avatar
    3 posts
    Member since:
    Jul 2011

    Posted 03 Aug 2011 Link to this post

    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.
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 08 Aug 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rob
    Rob avatar
    11 posts
    Member since:
    Apr 2011

    Posted 18 Sep 2012 Link to this post

    Is there anything in the works to have the Table Wizard use the formatSets from a Tools.xml file?
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 21 Sep 2012 Link to this post

    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.
  6. Kevin
    Kevin avatar
    28 posts
    Member since:
    Dec 2008

    Posted 16 Oct 2012 Link to this post

    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
  7. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 17 Oct 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017