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

How to pass param to ImageManager/ImageEditor

1 Answer 47 Views
Editor
This is a migrated thread and some comments may be shown as answers.
DMC Helpdesk
Top achievements
Rank 1
DMC Helpdesk asked on 05 Nov 2008, 05:20 AM

Hi,

I am using 3 RadEditor controls in my page with IDs:

1-SummryRE: to enter news summary
2-ImagePathRE: to paste image
3-ContentRE: to paste news content

Now, I would like that when the 'Insert Image' button is clicked in the ImagePathRE editor control, the image manager (and then the image editor) receives a param, so I can do image cropping programatically in my custom FileSystemContentProvider when an image is uploaded.The reason I am passing a param is that I only want to do cropping if the parent rad editor of the Image Editor is ImagePathRE.

Can I pass this param from server side code or query string ?

Thanks in advance

Madani

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Nov 2008, 03:56 PM
Hi Madani,

The easiest way is to set on the client

editor.get_dialogOpener().set_additionalQueryString("&editor="+editor.get_id());

and thus all editor's dialogs will have in their querystring the ID of RadEditor.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
DMC Helpdesk
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or