Thanks for your kind help.
I want another help.I add a customtoolbar and want to display an image in the editor using javascript;I put the source for the image in an hiddenfield.i attach the code below.
function PasteEmailTemplate(commandName)
{
var imgSource=document.getElementById("ctl00_ContentPlaceHolder1_hidImgSource");
//window.location="Mail.aspx?img="+imgSource;
switch(commandName)
{
case('pastetemplate'):
var htmlName=document.getElementById('ctl00_ContentPlaceHolder1_ASPxHtmlEditor1');
HtmlEditor.ExecuteCommand(ASPxClientCommandConsts.SELECT_ALL, null);
HtmlEditor.ExecuteCommand(ASPxClientCommandConsts.PASTEHTML_COMMAND, imgSource.value);
break;
}
}
hidImgSource.Value = "<img src='C:/Documents and Settings/All Users/Documents/My Pictures/Sample Pictures/Water lilies.JPEG' width='200' height='100'>";
But the image is not displayed in the editor .what is the problem.