volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Using ImageEditor from code

Has anyone tried using the ImageEditor dialog (UI/Edit/ImageEditor/ImageEditor.aspx) from code?

To be more specific: what javascript dialogArguments is necessary to use this dialog from outside the wysiwyg editor?

#29713
May 11, 2009 9:03

When used from the file manager it's opened with the following code

var imageEditorUrl = EPi.ResolveUrlFromUI("Edit/ImageEditor/ImageEditor.aspx"); 
EPi.CreateDialog(imageEditorUrl + "?img=" + filePath + "&openedfromfilemanager=true", OnEditImageCompleted, null, {src: filePath}, {width: width, height: height});

where width and height are the dialog dimensions and filePath is the path to the image.

#29752
May 12, 2009 9:53
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.