Hi,
I can upload Image in TinyMCE Editor TextBox Using Link below
http://aspsnippets.com/Articles/Upload-add-and-Display-Image-in-TinyMCE-Editor-TextBox-using-jQuery-Uploadify-Plugin-in-ASPNet.aspx
and I want to upload file and flash like image
I wrote this but I get syntax error
'onComplete': function (event, queueID, fileObj, response, data) {
var flash="<img height=" + "100" + " width=" + "100" + " title=" + "sound:true,progress:true,autostart:true,swliveconnect:'false',swstretchstyle:'none',swstretchhalign:'none',swstretchvalign:'none',src:'"+response+"',width:'100',height:'100'" + " " + "class=" + "mceItemShockWave" + " " + "mce_src='"+response+"' src='"+response+"' _moz_resizing=" + "true" + "/>";
}
});
});
</script>
what is wrong here?
with fileupload control
I can do it by this code
//embed flash
if (FileUpload3.HasFile)
{
string FileName = System.IO.Path.GetFileName(FileUpload3.PostedFile.FileName);
string FilePath = "upload/" + FileName;
FileUpload3.SaveAs(Server.MapPath(FilePath));
WYSIWYG.Text += string.Format("<img height=" + "100" + " width=" + "100" + " title=" + "sound:true,progress:true,autostart:true,swliveconnect:'false',swstretchstyle:'none',swstretchhalign:'none',swstretchvalign:'none',src:'{0}',width:'100',height:'100'" + " " + "class=" + "mceItemShockWave" + " " + "mce_src='{0}' src='{1}' _moz_resizing=" + "true" + ">", FilePath, FilePath, FilePath);
}
Thanks