如何在ASP.NET中使用带有ckeditor的roxy文件管理器 [英] How to use roxy file manager with ckeditor in ASP.NET

查看:83
本文介绍了如何在ASP.NET中使用带有ckeditor的roxy文件管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CKEditor和Roxy Manager创建CMS网站进行图片浏览和上传,因为它是免费但仅显示文本框

以下是我的代码请给我一些CKeditor和Roxy的例子经理

提前感谢



我的尝试:



页面代码

Im creating CMS site in that im using CKEditor and Roxy Manager for image browse and upload because its free but its only showing text box
below is my code please give me some example for CKeditor and Roxy Manager
thanks in advance

What I have tried:

Page code

I have downloaded Roxy file manager folder and kept it in my application folder







<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.7.1.min.js"></script>
    <script src="Scripts/jquery-1.7.1.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
           
<textarea id="editor1" name="editor1" rows="10" cols="80"></textarea>
            <script>
var roxyFileman = '/fileman/index.html?integration=ckeditor';
$(function(){
  CKEDITOR.replace( 'editor1',{filebrowserBrowseUrl:roxyFileman, 
                               filebrowserImageBrowseUrl:roxyFileman+'&type=image',
                               removeDialogTabs: 'link:upload;image:upload'});
});
</script>
    </div>
    </form>

</body>

</html>





网络配置文件





Web config file

<staticContent>
      <!--Cache static content for 24 hours-->
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="24.00:00:00" />
      <!--Allow json file loading (used by Roxy Fileman)-->
      <remove fileExtension=".json" />
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>

推荐答案

(function(){
CKEDITOR.replace('editor1', {filebrowserBrowseUrl:roxyFileman,
filebrowserImageBrowseUrl:roxyFileman +'& type = image',
removeDialogTabs:'link:upload; image:upload'});
});
< / script>
< / div>
< / form>

< / body>

< / html>
(function(){ CKEDITOR.replace( 'editor1',{filebrowserBrowseUrl:roxyFileman, filebrowserImageBrowseUrl:roxyFileman+'&type=image', removeDialogTabs: 'link:upload;image:upload'}); }); </script> </div> </form> </body> </html>





网络配置文件





Web config file

<staticContent>
      <!--Cache static content for 24 hours-->
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="24.00:00:00" />
      <!--Allow json file loading (used by Roxy Fileman)-->
      <remove fileExtension=".json" />
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>


这篇关于如何在ASP.NET中使用带有ckeditor的roxy文件管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆