hi,
In the past, we can set the tool button's attribute like this:
WebControl btn= this.Editor1.ToolControls["InsertImage"].Control as WebControl;
btn.Attributes["onclick"] = "alert('hellow telerik');";
But now it seem that we cannot make it like that !
this is the client-side way:
Is there a way to do it in C# code?
Thanks for your reply!
Regards
In the past, we can set the tool button's attribute like this:
WebControl btn= this.Editor1.ToolControls["InsertImage"].Control as WebControl;
btn.Attributes["onclick"] = "alert('hellow telerik');";
But now it seem that we cannot make it like that !
this is the client-side way:
<script type="text/javascript"> |
var imageManagerCommand = RadEditorCommandList["ImageManager"]; |
RadEditorCommandList["ImageManager"] = function(commandName, editor, oTool) |
{ |
imageManagerCommand (commandName, editor, callBackFn); |
function callBackFn(result) |
{ |
if (result && result.imagePath) |
{ |
}; |
} |
} |
</script> |
Is there a way to do it in C# code?
Thanks for your reply!
Regards