By default, all RadEditor dialogs are embedded as resource files in the Telerik.Web.UI.dll. In order to provide an easy way to modify the editor's dialogs, the Telerik UI installation now comes with a folder named EditorDialogs which contains all editor's dialogs files.
You can configure RadEditor to use its external dialog files by copying the EditorDialogs folder to your web application and setting the ExternalDialogsPath property to point to it, e.g.
<telerik:radeditor ExternalDialogsPath="~/Editor/Examples/ExternalDialogsPath/EditorDialogs/" runat="server" ID="RadEditor1"></telerik:radeditor>
The example demonstrates how to customize the Link manager by hiding its Anchor tab as well as the Existing Anchor dropdown on the Hyperlink tab.
Here are the steps:
- Copy the EditorDialogs installation folder to your web application.
- Set the ExternalDialogsPath property to point to the EditorDialogs folder
- Open the EditorDialogs/LinkManager.ascx file and to hide the Anchor tab set Visible="false" to the following RadTab's control:
<telerik:RadTab Text="Anchor"Visible="false" Value="Anchor"></telerik:RadTab>
- After that locate the <tr> tag, which wraps the ExistingAnchor label and dropdown and hide it by setting style="display:none" to it, e.g.
<tr id="existingAnchorRow"style="display:none;" runat="server">
<td class="reLabelCell">
<label for="ExistingAnchor" class="reDialogLabel">
<span>
<script type="text/javascript">document.write(localization["ExistingAnchor"]);</script>
</span>
</label>
</td>
<td class="reControlCell">
<select id="ExistingAnchor">
<option selected="selected">None</option>
</select>
</td>
</tr>
Important Change! : Starting from Q3 2013 an important change was introduced regarding the enabled Auto Resize feature of the dialogs. Setting a custom size for the built-in dialogs via the DialogDefinitions class will not be respected, due to this change.
You can find more information and instructions for how to properly resize the dialogs by following the "Dialog's Auto Size feature enabled" article in the Changes and Backwards Compatibility section of the RadEditor's documentation.