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

ToolsFile does not seem to be getting picked up

7 Answers 279 Views
Editor
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 24 Oct 2007, 09:22 AM
Hi

My ToolsFile setting does not seem to be getting picked up.

I copied the original from the RadControls directory to a new directory and modified it slightly.

Modified ToolsFile ...
<root>    
    <modules> 
        <module name="RadEditorHtmlInspector" dockingZone="Module" enabled="true" visible="false" /> 
    </modules> 
    <tools name="MainToolbar" isribbon="false" dockable="true">                       
        <tool name="AjaxSpellCheck"/>         
        <tool name="FindAndReplace" shortcut="CTRL+F"/>       
        <tool name="Copy" shortcut="CTRL+C"/>  
        <tool name="Paste" shortcut="CTRL+V"/>  
        <tool name="PasteFromWord" /> 
        <tool name="PasteFromWordNoFontsNoSizes" /> 
        <tool name="PastePlainText" /> 
        <tool name="PasteAsHtml"  /> 
        <tool separator="true"/>  
        <tool name="Undo" shortcut="CTRL+Z"/>  
        <tool name="Redo" shortcut="CTRL+Y"/>  
    </tools> 
    <tools isribbon = "false">  
        <tool name="Bold" shortcut="CTRL+B"/>  
        <tool name="Italic" shortcut="CTRL+I"/>  
        <tool name="Underline" shortcut="CTRL+U"/>  
        <tool name="StrikeThrough" /> 
        <tool separator="true"/>  
        <tool name="JustifyLeft" /> 
        <tool name="JustifyCenter" /> 
        <tool name="JustifyRight" /> 
        <tool name="JustifyFull" /> 
        <tool name="JustifyNone" /> 
        <tool separator="true"/>  
        <tool name="Indent" /> 
        <tool name="Outdent" /> 
        <tool name="InsertOrderedList" /> 
        <tool name="InsertUnorderedList" /> 
    </tools> 
    <tools isribbon="false">      
        <tool name="ConvertToLower" /> 
        <tool name="ConvertToUpper" />        
        <tool separator="true"/>          
          
        <tool name="InsertTable" /> 
        <tool name="InsertSnippet" /> 
        <tool name="InsertFormElement" /> 
        <tool name="InsertSymbol" />              
    </tools> 
    <tools name="DropdownToolbar" isribbon="false">  
    <tool name="FormatBlock"/>  
        <tool name="FontName"/>  
        <tool name="FontSize"/>  
        <tool separator="true"/>  
        <tool name="FormatStripper"/>         
        <tool name="ApplyClass"/>                 
        <tool name="InsertCustomLink"/>               
        <tool name="ForeColor"/>  
        <tool name="BackColor"/>          
    </tools>      
    <links> 
    </links> 
    <tools name="DialogToolbar" dockingZone="Top" enabled="true" isribbon="false">  
        <tool name="IncreaseSize" shortcut="F10"/>        
        <tool name="DecreaseSize" shortcut="F9"/>     
        <tool name="Print" shortcut="CTRL+P"/>    
        <tool name="Superscript" /> 
        <tool name="Subscript" />         
        <tool name="InsertParagraph" /> 
        <tool name="InsertHorizontalRule" /> 
        <tool name="InsertDate" /> 
        <tool name="InsertTime" />        
        <tool separator="true"/>          
        <tool name="AboutDialog" /> 
        <tool name="Help" shortcut="F1"/>  
    </tools>      
    <snippets> 
    </snippets> 
    <symbols></symbols>   
    <fontNames> </fontNames>      
    <fontSizes></fontSizes>  
    <colors></colors>     
    <paragraphs></paragraphs>  
    <classes></classes>  
    <dialogParameters></dialogParameters>  
    <languages></languages>  
    <contextMenus></contextMenus>  
</root> 
<!-- ==============================================================================================  
The ToolsFile must have a valid structure as shown below  
All attributes and their values are case sensitive!   
<root> 
  <modules> 
    <module /> 
    <module/> 
  </modules> 
  <tools> 
    <tool /> 
    <tool /> 
     ...  
  </tools> 
    ...   
  <colors> 
    <color/> 
    <color/> 
  </colors> 
</root>   
 
<tool> element valid attributes:  
   
name (required): Bold Italic Underline StrikeThrough Superscript Subscript   
JustifyLeft JustifyCenter JustifyRight JustifyFull InsertOrderedList InsertUnorderedList   
Outdent Indent Cut Copy Paste PasteFromWord   
PastePlainText PasteAsHtml Print Undo Redo ImageManager   
AbsolutePosition LinkManager Unlink InsertBoldHorizontalRule InsertTable ToggleTableBorder   
FormatBlock ApplyClass FontName  FontSize InsertCustomLink Custom   
InsertSymbol BackColor ForeColor FlashManager MediaManager SpellCheck   
FormatStripper InsertParagraph InsertSnippet Help FindAndReplace DocumentManager   
PasteFromWordNoFontsNoSizes InsertFormElement InsertDate InsertTime TemplateManager ToggleScreenMode   
Zoom ModuleManager ToggleDocking RepeatLastCommand AboutDialog    
   
shortcut  
(not required):  
 The key combination for the specific tool. Examples:  
    <tool name="TemplateManager" shortcut="Ctrl+Shift+Alt+N"/>   
    <tool name="LinkManager" shortcut="Ctrl+L" />   
 
 
<separator> element  
true/false Indicates whether a separator should appear at current position.   
 
<tools> element valid attributes:  
name (required): This string will identify the toolbar.   
enabled (not required): true/false (Indicates whether the tool will be available on the client or not)  
visible (not required):  
 true/false (Indicates whether the tool should appear in the toolbar or not. This toolbar will be available client-side - the property defines only the visibility of the tool.)   
dockable (not required):  
 true/false (Indicates whether you will be able to drag&drop the toolbar to the docking zones)   
 
<module> element valid attributes:  
(module elements should appear as child elements of an element "modules")  
name (required):  
 The friendly name of the module. When in floating mode the name will appear in the tool's titlebar.  
dockable (not required):  
 (Indicates whether you will be able to drag&drop the tool to the docking zones)  
enabled (not required):  
 (Indicates whether the module will be available on the client or not)  
visible (not required):  
 (Indicates whether the module should appear in the toolbar or not. This module will be available client-side - the property defines only the visibility of the module. )   
 
<link> element valid attributes:  
(link elements should appear as child elements of an element "links")  
name (required):  
 Link/Category Name/Alias  
href (not required):  
 URL of the link/category  
target (not required):  
 The target window of the link  
tooltip (not required):  
 The tooltip for the link  
   
<symbol> element valid attributes:  
(symbol elements should appear as child elements of an element "symbols")  
value (required):  
 The symbol to be displayed  
 
<font> element valid attributes:  
(font elements should appear as child elements of a tool element with "name" attribute set to "fontNames")  
name (required):  
 Font Name  
   
<class> element valid attributes:  
(class elements should appear as child elements of an element "classes")  
name (required):  
 Class Alias   
value (required):  
 Class Name   
 
<paragraph> element valid attributes:  
(paragraph elements should appear as child elements of an element "paragraphs")  
   
name (required):  
 Paragraph Alias   
value (required):  
 Paragraph Name   
 
<color> element valid attributes:  
(color elements should appear as child elements of an element "colors")  
value (not required):  
 Hex value of the color   
 
<snippet> element valid attributes:  
(snippet elements should appear as child elements of an element "snippets")  
name (required):  
 Snippet Alias  
   
<language> element valid attributes:  
(language elements should appear as child elements of an element "Languages")  
code (required):  
 Language code  
title (required):  
 Language Title  
   
The contextMenus tag in the Tools file allows you to change the default or specify custom context menus for different HTML elements.  
<contextMenu > element valid attributes:  
(contextMenu elements should appear as child elements of an element "contextMenus")  
forElement (required):  
 The HTML element that will call this menu.  
enabled (required):  
 Defines if this context menu is switched.  
 
The example below shows how to attach custom context menus for <A> and <P> elements.  
 
<contextMenus> 
   <contextMenu forElement="A" enabled="false">  
   </contextMenu> 
   <contextMenu forElement="P">  
       <tool name="JustifyLeft" /> 
       <tool name="JustifyCenter" /> 
       <tool name="JustifyRight" /> 
       <tool name="JustifyFull" /> 
   </contextMenu> 
</contextMenus>               
=============================================================================================== --> 


My RadEditor decleration is ...
            <telerik:RadEditor ID="sText" runat="server" Skin="Default" Height="300" Width="500" ToolsFile="~/resources/ToolsFile_the-dl-outlet.xml">  
            </telerik:RadEditor> 
 

NB: My RadEditor is within a WebUserControl.

Kind Regards

David

7 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 24 Oct 2007, 09:39 AM
Hello hkdave95,

I tried to reproduce the problem with the attached page and user control, but to no avail. Am I missing something?

Note that you might have to change the path to the tools file, because the ToolsFile folder in the archive was a sub folder of my test application.

Sincerely yours,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
hkdave95
Top achievements
Rank 2
answered on 24 Oct 2007, 07:33 PM
Hi

Your previous thread mentions an attachment but it does not seem to be there.

Kind Regards

David
0
Rumen
Telerik team
answered on 25 Oct 2007, 10:31 AM
Hi David,

Here is the attachment: ToolsFile.zip.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
hkdave95
Top achievements
Rank 2
answered on 25 Oct 2007, 06:40 PM
Hi

Apologies, I forgot to mention that the WebuserControl is an "EditForm" inside a RadGrid.

Kind Regards

David
0
hkdave95
Top achievements
Rank 2
answered on 25 Oct 2007, 09:20 PM
Hi

Your 1019 build Hotfix solved this problem as well as the one I was having on the other thread.

Thanks for the Support.

Kind REgards

David
0
Brett
Top achievements
Rank 2
answered on 09 Jan 2008, 08:31 PM
I seem to be having this same problem.
I am using version 2007.3.1218.20 (Retail)
 Here is my ASPX

<

telerik:RadEditor ToolsFile="~/ToolsFile.xml" ID="redMail" runat="server" EditModes="Design"

Skin="Telerik" Width="100%">

<Content>

</Content>

<SpellCheckSettings SpellCheckProvider="PhoneticProvider" WordIgnoreOptions="None" />

</telerik:RadEditor>

I am using a toolsfile that was copied from a working version of RadEditor ASP.net 2007 Q3 and am trying to switch to Prometheus.

I am also getting a 'Sys' is undefined error which I believe relates to Ajax/Jscript issues somewhere.  Any ideas what is happening?

Thanks
Brett 

0
Brett
Top achievements
Rank 2
answered on 09 Jan 2008, 09:13 PM
Seems after fixing Ajax setup in web.config and learning about the changes to ToolsFile for Prometheus version, all is well.

Brett
Tags
Editor
Asked by
hkdave95
Top achievements
Rank 2
Answers by
Valeri Hristov
Telerik team
hkdave95
Top achievements
Rank 2
Rumen
Telerik team
Brett
Top achievements
Rank 2
Share this question
or