Ueditor富编辑器第二次打开的时候会渲染失败
来源:互联网 发布:xp如何添加网络打印机 编辑:程序博客网 时间:2024/04/29 00:02
1、在页面或窗口关闭的时候,通过监听页面或窗口事件,在函数里面销毁富编辑器
if(typeof(UE.getEditor("newsContentAdd")) !='undefined'){
UE.getEditor("newsContentAdd").destroy();
}
2、在页面每次初始化的时候,先删除掉以前的编辑器,再次进行初始化
//先删除掉以前的ueditor,否则第二次打开的时候会渲染失败
UE.delEditor("newsContent");
//初始化渲染ueditor
var newsContent = UE.getEditor('newsContent',{
initialFrameWidth:1000,initialFrameHeight:450,
toolbars:[
['source','undo','redo','bold','italic','underline','fontborder','strikethrough','superscript','subscript', 'removeformat','formatmatch','autotypeset','blockquote','pasteplain','|','forecolor','backcolor','insertorderedlist','insertunorderedlist','selectall','cleardoc','rowspacingtop','rowspacingbottom','lineheight','|','background'],
['fontfamily','fontsize','|','justifyleft','justifycenter','justifyright','justifyjustify','|','imagenone','imageleft','imageright','imagecenter','|','insertimage','emotion','|','inserttable','deletetable','insertparagraphbeforetable','insertrow','deleterow','insertcol','deletecol','mergecells','mergeright','mergedown','splittocells','splittorows','splittocols','|','preview']
]
,emotionLocalization:true
,wordCount:false,autoFloatEnabled:false
});
0 0
- Ueditor富编辑器第二次打开的时候会渲染失败
- Ueditor富编辑器第二次打开的时候会渲染失败
- Ueditor富编辑器做弹出或是某些情况第二次打开的时候会渲染失败
- 富文本web编辑器--ueditor的使用
- 百度富文本编辑器Ueditor的使用
- 富文本编辑器Ueditor的使用
- 关于富文本编辑器Ueditor的使用
- ueditor富文本编辑器的使用
- 百度Ueditor富文本编辑器的使用
- UEditor富文本编辑器的使用
- UEditor富文本编辑器的使用
- 富文本编辑器ueditor的使用实践
- 富文本编辑器UEditor的配置使用方法
- 富文本编辑器UEditor的配置使用方法
- 富文本编辑器UEditor的配置使用方法
- UEditor富文本编辑器的简单入门
- 趣拍SDK的使用其他颜色渲染,和第二次录制的时候会崩溃问题
- 富文本编辑器ueditor
- poj1734 Sightseeing trip
- slot
- POJ 1364 King [差分约束系统]
- 动态代理与类加载器
- python-numpy一些方法总结
- Ueditor富编辑器第二次打开的时候会渲染失败
- Struts2 数据封装机制
- 思维题:抽屉原理 hdu 5776 sum & 51Nod 1103 N的倍数
- GetTickCount()和Sleep()
- 斯坦福大学深度学习开言
- Ueditor官方文档之上传路径配置
- todo 啃掉这些社招文章
- Scalaz(52)- scalaz-stream: 并行运算-parallel processing concurrently by merging
- [编程题]关于二叉树的路径