Ueditor/多编辑器
来自站长百科
步骤一:html格式
<div class="warp"> <div class="content" id="simple" > </div> <div class="content" id="complex" > </div> </div>
步骤二:创建编辑器
//创建简单编辑器 var editor = new baidu.editor.ui.Editor({ minFrameHeight: 180, iframeCssUrl :'../../themes/default/iframe.css', UEDITOR_HOME_URL:'../../', toolbars:[ ['Bold','Italic','Underline','StrikeThrough','Superscript','Subscript'] ] }); editor.render('simple'); //创建复杂编辑器 var editorcomplex = new baidu.editor.ui.Editor({ minFrameHeight: 180, iframeCssUrl :'../../themes/default/iframe.css', UEDITOR_HOME_URL:'../../', toolbars:[ ['ForeColor','BackColor', 'JustifyLeft','JustifyCenter','SearchReplace'] ] }); editorcomplex.render("complex");
参考来源[ ]
Ueditor使用手册导航 | ||||||
---|---|---|---|---|---|---|
|