企业插件调用说明
js文件:
需要jquery库的支持 <script src="http://static.135editor.com/js/jquery/jquery.min.js" type="text/javascript"></script> 将js文件下载到应用服务器的ueditor目录,调用自己服务器的文件 <script type="text/javascript" src="/下载的百度编辑器目录/ueditor/ueditor.config.js"></script> <script src="http://static.135editor.com/js/ueditor/ueditor.all.min.js"></script> <script src="http://static.135editor.com/open/v1/a92d301d77.js" type="text/javascript"></script>
css代码
<link href="http://static.135editor.com/open/v1/96619a5672.css" rel="stylesheet" type="text/css" />
html代码:
将编辑器的区域放入form表单中,设置好name值,提交表单时,编辑器内部的内容会自动提交 <div style="width:800px;margin:0 auto;" > <form action="" method="post"> <script id="WxMsgContent" name="content" style="width:800px;" type="text/plain">初始化内容</script> <br/> <div style="text-align:center;"> <input type="submit" style="padding:10px 20px;" value="提交" onclick="alert($(this.form).serialize());return true;"> </div> </form> </div>
js代码:
请联系135工作人员获取appkey(QQ:786992714) current_editor = UE.getEditor('WxMsgContent',{ initialFrameHeight:600, open_editor: true, style_width:360, //样式区宽度像素 style_url : 'http://www.135editor.com/editor_styles/open?inajax=1&appkey=xxxx' });