Editor - 百度编辑器
2017-06-24 •
2 条评论
实例化编辑器
var ue = UE.getEditor('editor2', {
toolbars: [[
'source', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', '|',
'selectall', 'cleardoc', '|',
'fontfamily', 'fontsize', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
'simpleupload', '|',
'removeformat', '|'
]],
iframeCssUrl: '../ueditor/themes/editor2.css',
initialFrameHeight:500,
enableAutoSave: false,
enableContextMenu: false,
elementPathEnabled : false,
focus:false,
autoHeightEnabled:false
});