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

No buttons work with custom tools file

2 Answers 110 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 23 Sep 2010, 09:21 PM
I've got an old site we've upgraded to the most recent version of the Telerik controls but when we went to check out the RadEditor none of the buttons do anything. No dialogs no formatting nothing. So I created a blank page and gave it RadEditor then tested it. this works fine the dialogs work and so does the formatting. I pointed to this test page's RadEditor to the same custom tools file we used and now nothing works again. I was under the impression you could create custom tools files and so long as the names of the tools matched those that were present in the RadEditor by default they would just work. Essentially using the custom tools file as a way to reorder the tools how you saw fit, etc.

Am I missing something obvious that is preventing any of the buttons from working when this custom tools file is used??

Test Page
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="editor.aspx.vb" Inherits="TestSite.editor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="test.xml">
        </telerik:RadEditor>
    </div>
    </form>
</body>
</html>

Tools File
<?xml version="1.0" ?>
<root>
    <modules />
    <tools name="MainToolbar">
        <tool name="Cut" title="Cut (CTRL+X)" shortcut="CTRL+X" />
        <tool name="Copy" title="Copy (CTRL+C)" shortcut="CTRL+C" />
        <tool name="Paste" title="Paste(CTRL+V)" shortcut="CTRL+V" />
        <tool separator="true" />
        <tool name="Undo" title="Undo (CTRL+Z)" shortcut="CTRL+Z" />
        <tool name="Redo" title="Redo (CTRL+Y)" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="ImageManager" title="Image Manager" />
        <tool name="LinkManager" title="Create Link" />
        <tool name="Unlink" title="Unlink" />
        <tool name="InsertHorizontalRule" title="Insert Horizontal Rule" />
        <tool separator="true" />
        <tool name="Bold" title="Bold (CTRL+B)" shortcut="CTRL+B" />
        <tool name="Italic" title="Italic" />
        <tool name="Underline" title="Underline (CTRL+U)" shortcut="CTRL+U" />
        <tool separator="true" />
        <tool name="JustifyLeft" title="Justify Left" />
        <tool name="JustifyCenter" title="Justify Center" />
        <tool name="JustifyRight" title="Justify Right" />
        <tool separator="true" />
        <tool name="InsertOrderedList" title="Numbered List" />
        <tool name="InsertUnorderedList" title="Bulleted List" />
        <tool name="Indent" title="Indent" />
        <tool name="Outdent" title="Outdent" />
        <tool separator="true" />
        <tool name="InsertTable" title="Insert Table" />
        <tool separator="true" />
        <tool name="Help" title="Help" />
    </tools>
    <tools name="SecondaryToolbar" dockable="true">
        <tool name="Print" title="Print" />
        <tool name="FormatStripper" title="Clean" />
        <tool name="FindAndReplace" title="Find And Replace" />
        <tool name="SpellCheck" title="SpellCheck" />
        <tool name="FormatBlock" title="Paragraph" />
        <tool separator="true" />
        <tool name="ApplyClass" title="Styles" />
        <tool separator="true" />
        <tool name="FontName" title="Font" enabled="false" />
        <tool name="InsertSymbol" title="Insert Symbol" />
        <tool name="InsertSnippet" title="Insert Snippet" />
        <tool name="FlashManager" title="Insert Flash" />
        <tool name="MediaManager" title="Insert Media" />
        <tool name="DocumentManager" title="Insert Document" />
        <tool name="InsertCustomLink" title="CustomLinks" />
    </tools>
</root>

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 24 Sep 2010, 08:03 AM
Hello Nick,

The title and dockable attributes are not supported by the new RadEditor for ASP.NET AJAX and they should be stripped, e.g.

<?xml version="1.0" ?>
<root>
    <modules />
    <tools name="MainToolbar">
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy"  shortcut="CTRL+C" />
        <tool name="Paste"  shortcut="CTRL+V" />
        <tool separator="true" />
        <tool name="Undo" shortcut="CTRL+Z" />
        <tool name="Redo" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="ImageManager"  />
        <tool name="LinkManager"  />
        <tool name="Unlink"  />
        <tool name="InsertHorizontalRule"  />
        <tool separator="true" />
        <tool name="Bold"  shortcut="CTRL+B" />
        <tool name="Italic"  />
        <tool name="Underline"  shortcut="CTRL+U" />
        <tool separator="true" />
        <tool name="JustifyLeft"  />
        <tool name="JustifyCenter"  />
        <tool name="JustifyRight"  />
        <tool separator="true" />
        <tool name="InsertOrderedList" />
        <tool name="InsertUnorderedList"  />
        <tool name="Indent"  />
        <tool name="Outdent"  />
        <tool separator="true" />
        <tool name="InsertTable" />
        <tool separator="true" />
        <tool name="Help"  />
    </tools>
    <tools name="SecondaryToolbar" >
        <tool name="Print" />
        <tool name="FormatStripper"  />
        <tool name="FindAndReplace" />
        <tool name="SpellCheck"  />
        <tool name="FormatBlock"  />
        <tool separator="true" />
        <tool name="ApplyClass"  />
        <tool separator="true" />
        <tool name="FontName" />
        <tool name="InsertSnippet"  />
        <tool name="FlashManager"  />
        <tool name="MediaManager"  />
        <tool name="DocumentManager"  />
        <tool name="InsertCustomLink"  />
    </tools>
</root>

Kind regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nick
Top achievements
Rank 1
answered on 24 Sep 2010, 05:28 PM
Yup, that's exactly what was doing it. Odd that the additional attributes would cause the toolbars to cease functioning outright, but it's working fine now. Thanks for your help :-)
Tags
Editor
Asked by
Nick
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Nick
Top achievements
Rank 1
Share this question
or