Commit 32495378 by 罗绍泽

ueditor功能修复

parent f3dd8b8d
/**
*
* contentid:需要初始化的容器id
* content:需要填充的数据
*/
function getbaidu(contentid){
UE.getEditor(contentid).destroy();
function getbaidu(contentid,content){
UE.delEditor(contentid);
var ue = UE.getEditor(contentid,{ //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
toolbars:[ [
// 'fullscreen',
......@@ -27,7 +28,13 @@ function getbaidu(contentid){
zIndex :9999,
allowDivTransToP : false, //允许进入编辑器的div标签自动变成p标签
//更多其他参数,请参考ueditor.config.js中的配置项
serverUrl: '/jfV4platform/js/ueditor1_4_3/jsp/controller.jsp'
serverUrl: '/jfV5portal/js/ueditor1_4_3/jsp/controller.jsp'
});
if (content != null && "" != content) {
ue.ready(function() {
//设置编辑器的内容
ue.setContent(content);
});
}
return ue;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment