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

How to manage html editor managers (image manager, hyperlink manager...)

3 Answers 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ernesto
Top achievements
Rank 1
Ernesto asked on 01 Sep 2010, 02:53 PM
On my page I have telerik:radeditor control and few managers which configured within it. How can I change Behaviors property for that managers? I want make them not movable. Please help :)
<telerik:radeditor>
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="LinkManager" />
            <telerik:EditorTool Name="Unlink" />
            <telerik:EditorTool Name="ImageManager" />
            <telerik:EditorTool Name="DocumentManager" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:radeditor>

3 Answers, 1 is accepted

Sort by
0
Ernesto
Top achievements
Rank 1
answered on 02 Sep 2010, 06:44 AM
Is it possible?
0
Rumen
Telerik team
answered on 02 Sep 2010, 07:38 AM
Hi Ernesto,

You can use the following code to get a reference to Link Manager dialog behavior:

<Telerik:RadEditor ID="RadEditor1" OnClientCommandExecuting="OnClientCommandExecuting" runat="server"></Telerik:RadEditor>
<script type="text/javascript">
    function OnClientCommandExecuting(editor, args) {
        if (args.get_commandName() == "LinkManager") {
            //get reference to the LinkManager dialog's definitions
            var imgPropDialogDef = editor.get_dialogOpener().get_dialogDefinitions()["LinkManager"];
            //set dialog's width
            imgPropDialogDef.Behaviors = Telerik.Web.UI.WindowBehaviors.Close;
 
        }
    }
</script>

Do the same for the rest of the RadEditor dialogs.

Another approach is to define a restriction zone for RadEditor's dialogs as shown in this article: Applying RestrictionZoneID to RadEditor dialogs.

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
Ernesto
Top achievements
Rank 1
answered on 02 Sep 2010, 08:20 AM
Thanks a lot! You really help me!
Tags
Editor
Asked by
Ernesto
Top achievements
Rank 1
Answers by
Ernesto
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or