Re: adding chekbox in the toolbar like dropdowns

  •  03-18-2010, 2:53 PM

    Re: adding chekbox in the toolbar like dropdowns

    Here is an example to create a customized button to editor toolbar.
     
    1. <?php   
    2.              $editor=new CuteEditor();   
    3.              $editor->ID="Editor1";   
    4.              $editor->TemplateItemList="G_start,Bold,Italic,Underline,Separator,Holder,JustifyLeft,JustifyCenter,JustifyRight,Holder,G_end";   
    5.              $editor->Width=600;   
    6.              $editor->CustomAddons = "<img class=\"CuteEditorButton\" onmouseover=\"CuteEditor_ButtonCommandOver(this)\" onmouseout=\"CuteEditor_ButtonCommandOut(this)\" onmousedown=\"CuteEditor_ButtonCommandDown(this)\" onmouseup=\"CuteEditor_ButtonCommandUp(this)\" ondragstart=\"CuteEditor_CancelEvent()\" Command=\"MyCmd\" src=\"cuteeditor_files/Images/contact.gif\" />";   
    7.              $editor->Draw();   
    8.              $ClientID=$editor->ClientID();   
    9.              $editor=null;   
    10.                 
    11.              //use $_POST["Editor1"]to retrieve the data   
    12.          ?>  
    To add a checkbox into toolbar, you need to create a php string which renders the checkbox code.
     
    Hope it helps.

    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

View Complete Thread