how to auto select color after editor loaded

2 posts, 0 answers
  1. Big Q
    Big Q avatar
    30 posts
    Member since:
    Jan 2010

    Posted 25 Aug 2012 Link to this post

    hi telerik,
        I want a specific color of the forecolor dropdown can be selected by client code when the radeditor load, and I have the same porblem with the font-size dropdown , how should I do? thanks
  2. Rumen
    Rumen avatar
    14386 posts

    Posted 27 Aug 2012 Link to this post


    You can attach to the OnClientLoad event and fire the ForeColor and FontSize commands:

    <telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="OnClientLoad"></telerik:RadEditor>
        <script type="text/javascript">
            function OnClientLoad(editor) {
                setTimeout(function () {
          "FontSize", { value: "3" });
          'ForeColor', { value: "orange" });
                }, 100);

    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