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

Missing Document button in Link Manager

2 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 01 Jul 2016, 04:20 AM

I am missing the document manager button from my radeditor, hyperlink manager menu.

how do i enable it?

i have attached how my link manager look like and assembly information for Telerik.Web.UI.dll

ToolsFile.xml

<root>
    <modules>
        <module name="RadEditorDomInspector" />
    </modules>
    <tools>
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C" />
        <tool name="Paste" shortcut="CTRL+V" />
        <tool name="Undo" shortcut="CTRL+Z" />
        <tool name="Redo" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="FontName" />
        <tool name="FontSize" />
        <tool name="Bold" shortcut="CTRL+B" />
        <tool name="Italic" shortcut="CTRL+I" />
        <tool name="Underline" shortcut="CTRL+U" />
        <tool name="StrikeThrough" />
        <tool name="Subscript" />
        <tool name="Superscript" />
        <tool name="BackColor" />
        <tool name="ForeColor" />
        <tool name="FormatStripper" />
    </tools>
    <tools>
        <tool name="InsertUnorderedList" />
        <tool name="InsertOrderedList" />
        <tool name="Outdent" />
        <tool name="Indent" />
        <tool name="JustifyLeft" />
        <tool name="JustifyCenter" />
        <tool name="JustifyRight" />
        <tool name="JustifyFull" />
        <tool separator="true" />
        <tool name="ApplyClass" />
        <tool separator="true" />
        <tool name="AjaxSpellCheck" />
        <tool separator="true" />
        <tool name="FormatBlock" />
        <tool name="InsertHorizontalRule" />
  </tools>
    <tools>
        <tool name="InsertTable" />
        <tool name="ToggleTableBorder" />
        <tool separator="true" />
        <tool name="InsertImage" />
        <tool name="InsertLink" />
    <tool name="Unlink" />
        <tool separator="true" />
        <tool name="Help" />
    </tools>
 
  <contextMenus>
        <contextMenu forElement="*">
            <tool name="Cut"/>
            <tool name="Copy"/>
            <tool name="Paste"/>
        </contextMenu>
    </contextMenus>
    <classes>
        <class name="Clear Class" value="" />
        <class name="Normal" value=".ms-rteStyle-Normal" />
        <class name="Highlight" value=".ms-rteStyle-Highlight" />
        <class name="By Line" value=".ms-rteStyle-Byline" />
        <class name="Tag Line" value=".rteStyle-Tagline" />
        <class name="Comment" value=".ms-rteStyle-Comment" />
        <class name="References" value=".ms-rteStyle-References" />
        <class name="Caption" value=".ms-rteStyle-Caption" />
    </classes>
</root>

aspx file

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<telerik:RadEditor ID="radEmail" runat="server" ToolsFile="/editor/ToolsFile.xml">
</telerik:RadEditor>

2 Answers, 1 is accepted

Sort by
0
Benjamin
Top achievements
Rank 1
answered on 01 Jul 2016, 04:44 AM

Hi. i am able to get the document manager to come out. but seems that the upload button is being disable and i am unable to view documents in the folder specified

 

<telerik:RadEditor ID="radEmail" runat="server" ToolsFile="/Users/benjamin/Desktop/editor/ToolsFile.xml">
               <DocumentManager ViewPaths="/Users/benjamin/Desktop/Documents" UploadPaths="/Users/benjamin/Desktop/Documents" DeletePaths="/Users/benjamin/Desktop/Documents"/>
           </telerik:RadEditor>

i realise that i need to click on "All Property" button to show the document manager button. is there anyway to by default show it?

 

0
Accepted
Vessy
Telerik team
answered on 01 Jul 2016, 10:12 AM
Hi Benjamin,

By default all file managers of the Editor can work only with virtual paths to folders placed inside the application's root directory. You can examine the configuration of this online demo: http://demos.telerik.com/aspnet-ajax/editor/examples/filemanagers/defaultcs.aspx

In case the User directory is placed directly inside the application's root directory, changing your Document declaration in the following way should resolve the issue:
<telerik:RadEditor ID="radEmail" runat="server" ToolsFile="~/Users/benjamin/Desktop/editor/ToolsFile.xml">
    <DocumentManager ViewPaths="~/Users/benjamin/Desktop/Documents" UploadPaths="~/Users/benjamin/Desktop/Documents" DeletePaths="~/Users/benjamin/Desktop/Documents"/>
</telerik:RadEditor>

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Editor
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Benjamin
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or