Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • praveity 100 posts 125 karma points
    Dec 18, 2012 @ 12:08
    praveity
    0

    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" />

  • praveity 100 posts 125 karma points
    Dec 19, 2012 @ 13:21
    praveity
    0

    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??


  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies