Image dialog

2 posts, 0 answers
  1. Devin
    Devin avatar
    8 posts
    Member since:
    Jun 2009

    Posted 05 Apr 2011 Link to this post

    Hi I'm using RadEditor and the modal popup ImageManager.  I'm finding that the image manager is loading too far to the right.  Is there a way to set this so that when the image manager pops up it will be in the top left?

    Thanks!
    Devin
  2. Rumen
    Admin
    Rumen avatar
    13884 posts

    Posted 06 Apr 2011 Link to this post

    Hi Devin,

    Here is an example demonstrating how to display the editor dialogs on the desired position:

    <script type="text/javascript">
    function OnClientCommandExecuted(sender, args) {
    var commandName = args.get_commandName();
    //extend the list to match used dialogs
    if (commandName == "ImageManager"
    || commandName == "DocumentManager"
    || commandName == "TableWizard"
    || commandName == "MediaManager"
    || commandName == "LinkManager"
    || commandName == "TemplateManager") {
    var dialogWindow = sender.get_dialogOpener()._dialogContainers[commandName];
    dialogWindow.moveTo(0, 0);
    }
    }
    </script>
    <telerik:RadEditor ID="RadEditor" OnClientCommandExecuted="OnClientCommandExecuted" runat="server"></telerik:RadEditor>

    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
Back to Top