模板编辑器怎么使用,有没有会的?

模板编辑器怎么使用,有没有会的?

问题描述:

图片说明

网上下载了一个模板,其他的都会,就是不会搭建textarea 的部分,不知道要怎么嵌入,怎么使用有没有会的大神求指导,谢谢。

//var ue = UE.getEditor('myEditor'); //初始化 var ue = UE.getEditor('myEditor', { toolbars : [ [ 'source', 'Undo', 'Redo', '|', 'Bold', 'italic', 'underline','indent','lineheight', 'cleardoc','inserttable','mergecells', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', '|', 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'justifyleft', 'justifyright', 'justifycenter', 'justifyjustify', '|', 'insertimage', 'preview', 'searchreplace', 'FullScreen' ] ], //关闭字数统计 wordCount : true, maximumWords : 2000, autoHeightEnabled : true, //关闭elementPath elementPathEnabled : false, //默认的编辑区域高度 initialFrameHeight : 150 //更多其他参数,请参考ueditor.config.js中的配置项 }); function SureSubmit(objForm) { objForm.myEditors.value = UE.getEditor( 'myEditor').getContent(); objForm.submit(); }