基于DNN的CKeditor配置与使用
2013-10-16 19:42
323 查看
参考资料:http://blog.csdn.net/yanghongchang_/article/details/12582593
http://www.cnblogs.com/wuhuisheng/archive/2012/08/01/2617863.html
WEBCONFIG配置,不然会报错的 (标红的部分加上)
<httpRuntime executionTimeout="500" requestValidationMode="2.0"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"
validateRequest="false" /></system.web>
ckeditor\plugins\image\dialogs\image.js里去掉一段话,就是选择图片上传的比较乱的一段话
这一段里的虚拟路径暂时没用到用到的时候再说吧
if (CKEDITOR.instances['Txb_ProductContent']) {
CKEDITOR.remove(CKEDITOR.instances['Txb_ProductContent']);
} //如果实例已存在
var editor = CKEDITOR.replace('Txb_ProductContent'); //实例化
// editor.BasePath = "DesktopModules/YourCompany.Jz_Product/ckfinder/";
// CKFinder.setupCKEditor(editor, "/ckfinder/"); //相对路径
现在用的是这个
CKEDITOR.replace('<%= Txb_ProductContent.ClientID %>',
{
toolbar: 'Product',
width: '700px',
toolbarStartupExpanded: false
}
);
在网上有很多人都说在CKFinder中的config.ascx添加如下代码:
public override bool CheckAuthentication()
{
return true;//这样配置所有人都可以用
//return Request.IsAuthenticated;//这样配置只有管理员可以用
}
去除上传图片功能中的浏览服务器按钮
打开ckeditor\plugins\image\dialogs\image.js文件,搜索browseServer,找到该词第一次出现的位置,在后面添加,style:'display:none;'。
第二个browseServer位置是第二菜单:超链接的“浏览服务器”按钮,也可按上种办法去掉
http://www.cnblogs.com/wuhuisheng/archive/2012/08/01/2617863.html
WEBCONFIG配置,不然会报错的 (标红的部分加上)
<httpRuntime executionTimeout="500" requestValidationMode="2.0"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"
validateRequest="false" /></system.web>
ckeditor\plugins\image\dialogs\image.js里去掉一段话,就是选择图片上传的比较乱的一段话
这一段里的虚拟路径暂时没用到用到的时候再说吧
if (CKEDITOR.instances['Txb_ProductContent']) {
CKEDITOR.remove(CKEDITOR.instances['Txb_ProductContent']);
} //如果实例已存在
var editor = CKEDITOR.replace('Txb_ProductContent'); //实例化
// editor.BasePath = "DesktopModules/YourCompany.Jz_Product/ckfinder/";
// CKFinder.setupCKEditor(editor, "/ckfinder/"); //相对路径
现在用的是这个
CKEDITOR.replace('<%= Txb_ProductContent.ClientID %>',
{
toolbar: 'Product',
width: '700px',
toolbarStartupExpanded: false
}
);
在网上有很多人都说在CKFinder中的config.ascx添加如下代码:
public override bool CheckAuthentication()
{
return true;//这样配置所有人都可以用
//return Request.IsAuthenticated;//这样配置只有管理员可以用
}
去除上传图片功能中的浏览服务器按钮
打开ckeditor\plugins\image\dialogs\image.js文件,搜索browseServer,找到该词第一次出现的位置,在后面添加,style:'display:none;'。
第二个browseServer位置是第二菜单:超链接的“浏览服务器”按钮,也可按上种办法去掉
相关文章推荐
- 基于注解的Spring AOP的配置和使用--转载
- CKEDITOR使用与配置
- spring事物配置,声明式事务管理和基于@Transactional注解的使用
- 基于注解的Spring AOP的配置和使用--转载
- 配置和使用linux内核调试环境(基于虚拟机)
- Ckeditor结合springmvc的使用、配置、上传图片、分页
- 8 -- 深入使用Spring -- 4...6 AOP代理:基于注解的XML配置文件的管理方式
- CKEDITOR的使用与配置
- 使用C#尽可能以最少的代码完成多层次的软件配置(基于PropertyGrid控件) zt
- CKEditor配置使用
- 基于Servlet、JSP、JDBC、MySQL的登录模块(含过滤器的使用和配置)
- 如何配置与使用CKEDITOR
- CKEditor和CKFinder在ASP.NET项目中安装,配置和使用详解
- ckeditor4.1配置和使用
- 关于CKEditor4.5.6的使用,自定义toolbar配置,上传图片案例(SpringMVC+MyBatis案例),自定义行高,去编辑器的中内容,将编辑器中内容设置到指定的位置等
- Oracle RMAN(基于catalog) 配置与使用步骤
- 基于vue-cli的vue项目之axios的使用6--配置axios
- ckeditor的使用以及配置
- spring事物配置,声明式事务管理和基于@Transactional注解的使用
- JAVA里使用CKEditor和CKFinder的配置