ueditor使用问题
来源:互联网 发布:傲剑升级数据大全2014 编辑:程序博客网 时间:2024/05/21 06:01
ueditor是一款强大的开源富文本编辑器,以下是使用中遇到的问题汇总,以后不断更新:(版本号为1.2.6.1)
1.图片上传问题
http://blog.csdn.net/liquanfeng326/article/details/40026157
2.过滤标签问题
想要过滤a标签等样式,网上查了一下,设置blackList黑名单什么的方法都不行,根本没有这个选项。后来在ueditor的github论坛找到了一个样例,需要修改ueditor.config.js中的filterRules,就是最后注释的那个属性。具体内容可以参考这个Demo页面:http://ueditor.baidu.com/website/examples/filterRuleDemo.html
ps:这个问题调了好久,照着Demo添加了过滤函数还是不行,后来发现原因是自己用了ueditor.render()函数来生成编辑器,去掉这句就行了......
3.粘贴表格问题
粘贴表格时没反应,一开始以为是过滤器没弄好,看了ueditor.config.js文件中的filterRules函数,有对table及相关标签做处理,是没问题的。调试时控制台报了一个ueditor.all.min.js错误:
Uncaught TypeMismatchError: Failed to execute 'removeAttributeNode' on 'Element': The 1st argument provided is either null, or an invalid Attr object.
这也没法看啊,于是就把ueditor.all.min.js换成了ueditor.all.js。定位到1897行:
!browser.ie && node.removeAttributeNode(node.getAttributeNode('style'))呵呵,这下明白了,百度的程序员用了偷懒的写法,稍微改一下就行了:
if(!browser.ie && node.getAttributeNode('style')){ node.removeAttributeNode(node.getAttributeNode('style'));}
0 0
- ueditor使用问题
- ueditor使用中的问题总结
- Codelgniter框架使用UEditor问题。
- 百度ueditor使用遇到问题
- 使用UEditor遇到的问题
- 使用ueditor 无法创建目录问题
- 百度ueditor 编辑器使用问题收集
- 使用UEditor编辑器遇到的问题(java)
- 关于使用ueditor时产生的问题
- JSP中使用UEditor遇到的问题
- ueditor使用过程遇到的问题
- 使用ueditor视频无法上传的问题
- 使用Ueditor
- ueditor使用
- UEditor使用
- ueditor 使用
- 使用UEditor
- Ueditor 使用
- ios图片拉伸解决办法
- lightoj1045 - Digits of Factorial
- Java正确URL解码方式:URLDecoder.decode
- OTT TV与IPTV的不同
- 做一名优秀的开发者可没有说的那么简单
- ueditor使用问题
- Install OpenCV3.0 on Eclipse
- ubuntu下apt-get安装及卸载jdk
- 人生第一篇博客
- HDU1250 Hat's Fibonacci 【亿进制】
- ConnectionManagerImpl 模块学习
- 去掉 NavigationBar 底部的那条黑线
- Swift 的单例模式
- The processing instruction target matching "[xX][mM][lL]" is not allowed.