日期:2014-05-17  浏览次数:20915 次

fckeditor 上传图片动态返回问题
页面调用fckeditor                 
                <textarea id="content" name="content"></textarea>
                <script type="text/javascript">
                    var oFCKeditor = new FCKeditor('content') ;
                    oFCKeditor.BasePath = "../../fckeditor/";
                    oFCKeditor.Width='95%';
                    oFCKeditor.Height = 300;
                    oFCKeditor.ToolbarSet = "Sjswsbs";
                    oFCKeditor.ReplaceTextarea();                    
                </script>

fckeditor 点击

执行returnvalue = F.showModalDialog(winStr,"","font-family:Verdana;font-size:12;dialogWidth:610px; dialogHeight:300px;status:yes;scrollbars=yes");

            var oEditor = FCKeditorAPI.GetInstance('content');//这里怎么动态获取实例名
            
            if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
            {
                var url;        
                var filename;
                var returnval="";
             if (returnvalue!=null && returnvalue!=""){
                var arr = new Array();
                var filearr = new Array();
                arr = returnvalue.split("|||||");
                    url = arr[0];
                    filename = arr[1];
                    filearr = filename.split("-----");
           &nbs