Re: Customize behavior of Insert Image dialog.

  •  11-04-2011, 9:55 AM

    Re: Customize behavior of Insert Image dialog.

    Hi Ken,
    unfortunately writing  my own Insert Image dialog from scratch is not an option. The existing dialog has a lot of useful functionality that I cannot implement in a reasonable amount of time.
    I was able to achieve requirement #1 by adding a script to InsertImage.aspx that sets the attributes on load (this is a modified requirement, but still works for me).
     
    I was thinking of implementing #2 by adding a custom "insert special image" button that, when clicked, will change the document selection to position the caret inside the <div> element and then invoke Insert Image dialog. This way the dialog should insert the image in the desired position. I have 2 questions:
    1. Do you think this approach will work?
    2. Is there a way for me to get notification from Insert Image dialog when Cancel button is clicked? I would like to restore the selection in this case.
     
    Thanks,
    ivanb
View Complete Thread