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

Image dialog

1 Answer 70 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Devin
Top achievements
Rank 1
Devin asked on 06 Apr 2011, 03:12 AM
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

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Apr 2011, 08:59 AM
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
Tags
Editor
Asked by
Devin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or