|
地板
楼主 |
发表于 2014-1-23 16:30:27
|
只看该作者
嗯,感谢大大指导,我刚刚看了一下UEditor这个东东资料,它的菜单,上传都可以定制的,所以可以根据自己的需求,去调整平衡,我收回刚刚很不安全的判断!
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor({
toolbars:[['bold', 'italic','underline','|','forecolor','|','insertunorderedlist','insertorderedlist']],
elementPathEnabled:false,
minFrameHeight:170,
pasteFilter : true,
clearFontSize : true,
clearFontFamily : true,
removeClass : true,
pasteplain : true,
serialize:{ blackList:{style:1, link:1,object:1, applet:1, input:1,meta:1, base:1, button:1, select:1,, 'map':1, 'area':1,"img":1,"script":1} }
});
editor.render("editor");//参数为容器标签的id
</script> |
|