hello i am using EditorDropDown but i kip getting this error "the command InsertEmoticon is not implemented yet.
this is my code please help me
this is my code please help me
| EditorDropDown InsertEmoticon = new EditorDropDown("InsertEmoticon"); |
| InsertEmoticon.Text = "Dynamic dropdown"; |
| //Set the popup width and height |
| InsertEmoticon.Attributes["width"] = "110px"; |
| InsertEmoticon.Attributes["popupwidth"] = "240px"; |
| InsertEmoticon.Attributes["popupheight"] = "100px"; |
| for (int i = 1; i < 94; i++) |
| { |
| InsertEmoticon.Items.Add(new EditorDropDownItem("<IMG SRC='pages/emoticons/"+i+".gif' />", "pages/emoticons/"+i+".gif")); |
| } |
| main.Tools.Add(InsertEmoticon); |
| //main.Tools.Add(InsertEmoticon); |
| editor.OnClientCommandExecuted = "OnClientCommandExecuting"; |
| string script = "function OnClientCommandExecuting(editor, args)" + |
| "{" + |
| "var name = args.get_name();" + |
| "var val = args.get_value();" + |
| "if (name == 'InsertEmoticon'){" + |
| "editor.pasteHtml('<img src=\"' + val + '\"/>');" + |
| "args.set_cancel(true);" + |
| "}" + |
| "}"; |
| Page.ClientScript.RegisterStartupScript(this.GetType(), "InsertEmoticon", script, true); |
