where to code my event with custom button

Last post 03-06-2008, 3:30 PM by hamid_gsts. 2 replies.
Sort Posts: Previous Next
  •  12-21-2006, 11:43 AM 25290

    where to code my event with custom button

    Hey,
     
    I've add two custom buttons on my config file:

    <item type="g_end" />

    <item type="g_start" />

    <!-- <item type="image" name="Lien" imagename="lien" /> -->

    <item type="image" name="InsertVariables" imagename="variables" />

    <item type="image" name="InsertLiens" imagename="liens" />

    <item type="g_end" />
     
    when i run i get the message "Command "InsertVariables" is not supported or implemented
    Where did i can implement it ? in what file..
    please forgive my horrible english...
     
    thanks a lot...
  •  12-21-2006, 12:36 PM 25295 in reply to 25290

    Re: where to code my event with custom button

    The custom button can't be added into the configuration file.
     
    Please check the following article:
     
     
     
    Add a Cross Browser Modal Dialog Box to Cute Editor

    How to create a custom button(client side) which displays a dialog?( C# | VB )

    This example demonstrates how easy it can be to add your own client side buttons to the CuteEditor by creating a Cross Browser Modal Dialog Box.


    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

  •  03-06-2008, 3:30 PM 37656 in reply to 25295

    Re: where to code my event with custom button

    Hi! the link is broken. I am tyring to create a popup window and do some code in it. I added a custom button to the toolbar and I can't get the window to popup.
    I am using:

    function ShowMyDialog(MyButton)

    {

     

    var editor=CuteEditor_GetEditor(MyButton);

     

    var newwin=showModalDialog("My_Custom_Text.html?_rand="+new Date().getTime()

    ,editor,"dialogWidth:400px;dialogHeight:240px");

    }
     It's saying that ShowMyDialog is not implemented.
View as RSS news feed in XML