CuteEditor_OnCommand

Last post 06-09-2009, 12:38 PM by redman. 4 replies.
Sort Posts: Previous Next
  •  04-30-2009, 11:18 AM 51708

    CuteEditor_OnCommand

    Hi There -
     
    I've been reading the API docs and I'm a little confused with the CuteEditor_OnCommand function.  It seems this works unless the save button is clicked.  Is this the correct function to capture this event?  After searching the forum, it looks like it is the right function to use, but even your own demo seems to submit the form.  What I would like to do is capture this event on the clientside and then activate our own custom javscript functions used in our CMS.
     
    Thanks,
    Andrew
    Filed under:
  •  04-30-2009, 3:31 PM 51723 in reply to 51708

    Re: CuteEditor_OnCommand

    Hey there -
     
    If I change the save button from an input element to an image inside of the PHP class and give the image a command attribute this seems to solve my problem.  Until I hear back, this is what I will have to work with...
     
    Thanks,
    Andrew
  •  05-15-2009, 8:47 PM 52228 in reply to 51723

    Re: CuteEditor_OnCommand

    Andrew,
     
    You can create your submit button and submit image and disable the built-in save button.

    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

  •  06-09-2009, 12:01 PM 52900 in reply to 52228

    Re: CuteEditor_OnCommand

     
    I have tried the "How To", ie copied the aspx into my project and the CuteEditor_OnCommand is not working?
     
    Is there a proper solution to this (apart from disabling and reproducing the built-in button.....which if I wasnt so frustrated would sound very funny)
     
    It seems like if there was any button one would want to catch it would be the Save button?
     

    Mark Redman
    Made4Print Limited
    Filed under:
  •  06-09-2009, 12:38 PM 52906 in reply to 52900

    Re: CuteEditor_OnCommand

    I have the "How To" working now by changing a line of code:
     
    if(command.toLowerCase()=="postback" &&value=="Save" && editor.id=="<%=Editor2.ClientID %>")
     
    I still cant get this working on my page, I have the latest version installed and all code is within a User Control is that makes any difference.

    Mark Redman
    Made4Print Limited
View as RSS news feed in XML