You're Right. Excuse me!
This is All of my code for uploading file in Tinymce
<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="Stylesheet" type="text/css" href="CSS/uploadify.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="jquery-1.8.3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="scripts/jquery.uploadify.js"></script>
<script type="text/javascript" src="jscripts/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
$(function () {
$('textarea').tinymce({
script_url: 'jscripts/tiny_mce/tiny_mce.js',
theme: "advanced",
plugins: "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect,spellchecker",
theme_advanced_buttons2: "code",
theme_advanced_buttons3: "preview",
theme_advanced_buttons4: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true,
height: 200,
skin: "o2k7",
skin_variant: "silver"
});
$("[id*=FileUpload3]").fileUpload({
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
'buttonText': 'B Files',
'script': 'Upload.ashx',
'folder': 'uploads',
'multi': true,
'auto': true,
'onComplete': function (event, ID, fileObj, response, data) {
var file = "<a href = '" + response + "' mce_href = '" + response + "' alt = '" + fileObj.name + "' />";
tinyMCE.activeEditor.execCommand("mceInsertContent", true, file);
}
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="padding: 40px">
<asp:FileUpload ID="FileUpload3" runat="server" />
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
</div>
</form>
</body>
</html>
and this is for uploading swf in tinymce
'onComplete': function (event, queueID, fileObj, response, data) {
var flash="<img height=" + "100" + " width=" + "100" + " title=" + "sound:true,progress:true,autostart:true,swlivecon nect:'false',swstretchstyle:'none',swstretchhalign :'none',swstretchvalign:'none',src:'"+response+"', width:'100',height:'100'" + " " + "class=" + "mceItemShockWave" + " " + "mce_src='"+ response +"' src='"+ response +"' _moz_resizing=" + "true />";
tinyMCE.activeEditor.execCommand("mceInsertContent ", true, flash);
}
but no success.
what's the solution?
Thank's a lot!