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

Showing only Custom Links in Editor

1 Answer 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Naupad
Top achievements
Rank 1
Naupad asked on 26 Jan 2012, 08:24 PM
Hello,
        I am having a Rad Editor. I am populating Custom Links dropdown with my server side code. Now how can I only show Custom Links in my Rad Editor toolbar and no other tools???


HELP!!!!!!!!!!!!

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 27 Jan 2012, 10:49 PM
Naupad:

You can configure your RadEditor toolbar to use an XML file that is defined as follows:

<root>
  <tools name="DropdownToolbar" >
    <tool name="InsertCustomLink" shortcut="CTRL+ALT+K"/>
   </tools>
  <links>
    <link name="telerik" href="http://www.telerik.com">
      <link name="Products" href="http://www.telerik.com/products">
        <link name="RadEditor" href="http://www.telerik.com/radeditor" />
      </link>
      <link name="Purchase" href="http://www.telerik.com/purchase" />
      <link name="Support" href="http://www.telerik.com/support" />
      <link name="Client.Net" href="http://www.telerik.com/clientnet" />
    </link>
    <link name="Microsoft">
      <link name="Main Site" href="http://www.microsoft.com" />
      <link name="MSDN Online" href="http://msdn.microsoft.com" />
      <link name="Windows Update" href="http://windowsupdate.microsoft.com" />
    </link>
    <link name="Search Engines">
      <link name="Google" href="http://www.google.com" />
      <link name="Yahoo" href="http://www.yahoo.com" />
      <link name="AltaVista" href="http://www.altavista.com" />
    </link>
  </links>
</root>

See the "radeditor_customlinks_toolbar.png" attached for the RadEditor instance.

The toolbar for RadEditor is fully detailed on the Introduction to Toolbars. And you can reference the Default ToolsFile.xml file of RadEditor for ASP.NET AJAX knowledge base article to access/download the most commonly used toolbar groupings defined in XML files.

Reference the Editor / Default Settings online demo at http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx for insights on integrating them in your application.

Hope this helps!
Tags
Editor
Asked by
Naupad
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or