Hi,
Im getting "Command 'OnCommand' is not supported or not implemented" with the following code. Any ideas plz?
- 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=""OnCommand"" src=""../htmlEditor/CuteEditor_Files/Images/add-image-icon.gif"" />"&_
- "<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=""OnCommand"" src=""../htmlEditor/CuteEditor_Files/Images/link.gif"" />"
-
- editor.Width = 600
- editor.Height = 240
-
- If request("postback") <> "true" then
-
- editor.LoadHTML(myFile)
-
- %>
- <script language="JavaScript" type="text/javascript" >
- var editor1=document.getElementById("<%= editor.ClientID %>");
-
- function CuteEditor_OnCommand(editor,command,ui,value)
- {
- alert('hello');
-
- if(command=="MyInsertLink")
- {
-
- editor1.PasteHTML("Hello World");
- return true;
- }
- }
- lt;/script>