Custom Function for Image Editing...

Last post 01-31-2006, 11:41 AM by mikea. 4 replies.
Sort Posts: Previous Next
  •  08-15-2005, 9:51 PM 9592

    Custom Function for Image Editing...

    I asked this in my other thread, but it may deserve its own topic...
    Is there a way to override the double click event that pops up the "image properties" box?  I would like to popup my own custom drawing editor box.
     
    Thanks!
    Aaron
  •  08-15-2005, 10:35 PM 9594 in reply to 9592

    Re: Custom Function for Image Editing...

    Aaron,
     
    Yes. just modify the Tag_Image file.
     
    Replace the existing JavaScript with your own JavaScript.
     
    In your JavaScript, please include the following functions:
     
    function SyncToView()
    {
        var src = element.src;
    
        //inp_src.value=src;
        //Width.value=element.width;
        //Height.value=element.height;
        //VSpace.value=element.vspace;
        //HSpace.value=element.hspace;
        //Border.value=element.border;
        //bordercolor.value=element.style.borderColor;
        //bordercolor.style.backgroundColor=element.style.borderColor; 
        //Align.value=element.align;
        //AlternateText.value=element.alt;
        //longDesc.value=element.longDesc;
    }
    function SyncTo(element) { // element.src=inp_src.value; // element.border=Border.value; // element.hspace=HSpace.value; // element.vspace=VSpace.value; // try { // element.width=Width.value; // element.height=Height.value; // } // catch(er) { // alert("Please enter a valid number."); // return false; // } // element.align=Align.value; // element.alt=AlternateText.value; // element.longDesc=longDesc.value; // element.style.borderColor = bordercolor.value; }


    Hope it helps.
     
    Keep me posted.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-30-2006, 4:17 PM 15360 in reply to 9594

    Re: Custom Function for Image Editing...

    Hi Adam, great product!

    I'm evaluating the product and must accomplish the same task. I've got the main insert image toolbar function using my own image gallery, but I need to tap into the dialogs that access images, too (such as the stylebuilder background image, and the image properties mentioned in this thread). 
     
    What javascript am I replacing? What file is it in? Do I need to purchase the source to do this?
     
    Thanks in advance for the help.
    Michael
  •  01-30-2006, 6:14 PM 15370 in reply to 15360

    Re: Custom Function for Image Editing...

    Michael, 
     
    Thanks for the kind words about Cute Ediotr.
     
    >>What file is it in?
    SelectImage.Frame.aspx
     
    Can you post your modified code? Maybe we can start from there.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-31-2006, 11:41 AM 15396 in reply to 15370

    Re: Custom Function for Image Editing...

    Thanks for the quick repsonse, Adam.

    I found the  js at the bottom of tag_image.ascx - I made my own copy of tag_image.ascx, hid your browse button, added my own, made sure to call FireUIChanged after returing from my browse dialog, and updated the tag.config file to use my version - everything worked great!

    Updating the Style Builder Background Image browse button to do the same now...so far so good.
     
    Michael
View as RSS news feed in XML