Editor.customaddons from v5 to v6

Last post 06-05-2007, 12:50 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  06-05-2007, 12:16 AM 30371

    Editor.customaddons from v5 to v6

    Hi,

    I have some code here that worked fine in v5 and doesnt in v6. Can someone point out what I have to change to make the code work?

    strCodes = "<option>Insert Code</option><option value=""@FIRSTNAME"">@FIRSTNAME</option><option value=""@LASTNAME"">@LASTNAME</option><option value=""@USERNAME"">@USERNAME</option><option value=""@PASSWORD"">@PASSWORD</option><option value=""@GROUPCODE"">@GROUPCODE</option><option value=""@URL"">@URL</option><option value=""FocusForums™"">@WEBSITEURL</option>"
               
    editor.CustomAddons = "<table class=""CuteEditorGroupMenu"" cellspacing=""0"" cellpadding=""0""><tr><td class=""CuteEditorGroupMenuCell""><small><b>Codes: <select OnChange=""_Format(message,'PasteHTML',this.options[this.selectedIndex].value); this.selectedIndex=0;"" class=""CuteEditorSelect"">" & strCodes & "</select>&nbsp;Folder: </b></small></td></tr></table>"               
               

    thanks,
    Shamsu

  •  06-05-2007, 12:50 PM 30398 in reply to 30371

    Re: Editor.customaddons from v5 to v6

    Shamsu,
     
    Please Try the following code:
     
     editor.CustomAddons = "<img title=""Using oncommand"" 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"" />"
       

                   <script language="JavaScript" type="text/javascript" >
                      var editor1=document.getElementById("<%= editor.ClientID %>");
                      
                      function CuteEditor_OnCommand(editor,command,ui,value)
                      {
                       //handle the command by yourself
                       if(command=="MyCmd")
                       {
                     //   editor.ExecCommand("InsertTable");
                        editor1.PasteHTML("Hello World");
                        return true;
                       }
                      }
                   </script>


    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 as RSS news feed in XML