配置百度编辑器变成纯代码编辑器

只需配置:

//实例化编辑器
var ue = UE.getEditor("ueditor",{
toolbars: [
    ['fullscreen']
],
allHtmlEnabled:true,//提交整个表单数据(源码)
allowDivTransToP:false,//是否将div转为p
sourceEditorFirst:true,//初始化时进入源码模式
wordCount:false//关闭字符统计
});

猜你喜欢

转载自www.cnblogs.com/GaZeon/p/9197130.html
今日推荐