Insert image with custom attributes on Insert Image Dialog
Hi to all,
I have a scenario where on inserting the image to the RTE (if checkbox is checked), I need to have custom html for image inserted rather than the usual one. I can see the on clicking insert client-side event is fired with "ImageDialog.insert()", but couldn't find how the html tag for image is created.
Hi once again, to ellaborate more to my scenario I have attached screenshot. On the check of the checkbox "Aspect Ratio:" i want to have a imagegen used for dislaying the image.
On insert i want to change the default image tag from <img src="/media/230/cap.png" alt="Cap" title="Cap" width="350" height="256" rel="350,256" />
Insert image with custom attributes on Insert Image Dialog
Hi to all,
I have a scenario where on inserting the image to the RTE (if checkbox is checked), I need to have custom html for image inserted rather than the usual one. I can see the on clicking insert client-side event is fired with "ImageDialog.insert()", but couldn't find how the html tag for image is created.
The general img tag is :
<img src="/media/230/cap.png" alt="Cap" title="Cap" width="350" height="256" rel="350,256" />
But I would like to have something like:
<img src="abc.ashx?image=/media/230/cap.png" alt="Cap" title="Cap" width="350" height="256" rel="350,256" />
Hi once again, to ellaborate more to my scenario I have attached screenshot. On the check of the checkbox "Aspect Ratio:" i want to have a imagegen used for dislaying the image.
On insert i want to change the default image tag from <img src="/media/230/cap.png" alt="Cap" title="Cap" width="350" height="256" rel="350,256" />
To
<img src="/imagegen.ashx?image=/media/230/cap.png" alt="Cap" title="Cap" width="350" height="256" rel="350,256" />
Will it be possible to do so??
is working on a reply...