chunk-0a1452f6.d3e18c86.js 79 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a1452f6"],{"1d7f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[e._m(0),n("div",{staticClass:"content"},[n("el-form",{staticClass:"over_y",attrs:{size:"small","label-width":"140px"}},[n("el-form-item",{attrs:{label:"会议名称:"}},[n("el-input",{attrs:{placeholder:"请输入会议名称",clearable:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),n("el-row",[n("el-col",{attrs:{span:10}},[n("el-form-item",{attrs:{label:"主办方:"}},[n("el-select",{attrs:{placeholder:"请选择主办方",filterable:""},model:{value:e.form.sponsor,callback:function(t){e.$set(e.form,"sponsor",t)},expression:"form.sponsor"}},e._l(e.organizerList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),n("el-col",{attrs:{span:10,offset:4}},[n("el-form-item",{attrs:{label:"会议时间:"}},[n("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:10}},[n("el-form-item",{attrs:{label:"城市:"}},[n("el-cascader",{attrs:{options:e.cityList},on:{change:e.handleChangeCity},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)],1),n("el-col",{attrs:{span:10,offset:4}},[n("el-form-item",{attrs:{label:"会议时间:"}},[n("el-input",{attrs:{placeholder:"请输入详细地址"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1)],1),n("el-form-item",{attrs:{label:"会议简介:"}},[n("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入会议介绍"},model:{value:e.form.introduce,callback:function(t){e.$set(e.form,"introduce",t)},expression:"form.introduce"}})],1),n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否报名:"}},[n("el-radio-group",{model:{value:e.form.is_signup,callback:function(t){e.$set(e.form,"is_signup",t)},expression:"form.is_signup"}},[n("el-radio",{attrs:{label:0}},[e._v("不可报名")]),n("el-radio",{attrs:{label:1}},[e._v("可报名")])],1)],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"报名需提交信息:"}},[n("el-checkbox-group",{model:{value:e.form.signup_fields,callback:function(t){e.$set(e.form,"signup_fields",t)},expression:"form.signup_fields"}},e._l(e.form.signup_fields,(function(t,i){return n("el-checkbox",{key:i,attrs:{label:t.id}},[e._v(e._s(t.name))])})),1)],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否热门:"}},[n("el-radio-group",{model:{value:e.form.is_popular,callback:function(t){e.$set(e.form,"is_popular",t)},expression:"form.is_popular"}},[n("el-radio",{attrs:{label:0}},[e._v("不热门")]),n("el-radio",{attrs:{label:1}},[e._v("热门")])],1)],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否推荐:"}},[n("el-radio-group",{model:{value:e.form.is_recommend,callback:function(t){e.$set(e.form,"is_recommend",t)},expression:"form.is_recommend"}},[n("el-radio",{attrs:{label:0}},[e._v("不推荐")]),n("el-radio",{attrs:{label:1}},[e._v("推荐")])],1)],1)],1)],1),n("el-form-item",{attrs:{label:"封面图:"}},[n("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove}},[n("i",{staticClass:"el-icon-plus"})]),n("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[e._v("建议图片尺寸为:210*160")])],1),n("el-form-item",{attrs:{label:""}},[n("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"会议详情",name:"first"}},[n("fuEditor")],1),n("el-tab-pane",{attrs:{label:"主讲人",name:"second"}},[n("section",{staticStyle:{height:"544px",padding:"10px 0px",border:"1px solid #ccc"}},e._l(e.form.speaker,(function(t,i){return n("div",{key:i,staticClass:"speaker"},[n("el-row",[n("el-col",{attrs:{span:9}},[n("el-form-item",{attrs:{label:"主讲人姓名"}},[n("el-input",{attrs:{placeholder:"请输入主讲人姓名"},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"item.name"}})],1)],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"主讲人头像"}},[n("el-upload",{staticClass:"avatar-uploader",attrs:{action:"/api/admin/uploadfile","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imageUrl?n("img",{staticClass:"avatar",attrs:{src:e.imageUrl}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1),n("el-col",{attrs:{span:2}},[0==i?n("el-button",{attrs:{type:"normal",icon:"el-icon-plus"},on:{click:e.addSpeaker}},[e._v("添加主讲人")]):n("el-button",{attrs:{type:"normal"},on:{click:function(t){return e.clearSpeaker(i)}}},[e._v("删除")])],1)],1),n("el-row",{staticStyle:{position:"relative",top:"-55px"}},[n("el-col",{attrs:{span:9}},[n("el-form-item",{attrs:{label:"主讲人简介"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入主讲人简介"},model:{value:t.intruduce,callback:function(n){e.$set(t,"intruduce",n)},expression:"item.intruduce"}})],1)],1)],1)],1)})),0)]),n("el-tab-pane",{attrs:{label:"酒店信息",name:"third"}},[n("section",{staticClass:"hotel",staticStyle:{padding:"10px 0px",border:"1px solid #ccc"}},[n("el-row",[n("el-col",{attrs:{span:16}},[n("el-form-item",{attrs:{label:"选择历史酒店"}},[n("el-select",{attrs:{placeholder:"请选择酒店",filterable:""},model:{value:e.form.sponsor,callback:function(t){e.$set(e.form,"sponsor",t)},expression:"form.sponsor"}},e._l(e.organizerList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),n("el-col",{attrs:{span:4,offset:"1"}},[n("el-form-item",[n("el-button",{attrs:{icon:"el-icon-plus"}},[e._v("添加酒店")])],1)],1)],1),n("el-row",[n("el-form-item",{attrs:{label:"填写酒店信息"}}),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"酒店名称"}},[n("el-input",{attrs:{placeholder:"请输入主讲人姓名"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"酒店地址"}},[n("el-input",{attrs:{placeholder:"请输入主讲人姓名"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"酒店电话"}},[n("el-input",{attrs:{placeholder:"请输入主讲人姓名"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{staticClass:"hotel_imgs",attrs:{label:"酒店图片"}},[n("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove}},[n("i",{staticClass:"el-icon-plus"})]),n("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[e._v("建议图片尺寸为:210*160")])],1)],1)],1),n("el-row",[n("el-form-item",{attrs:{label:"填写房型信息"}})],1),e._l(e.form.hotel.type,(function(t,i){return n("div",{key:i,staticClass:"hotel-type"},[n("el-row",[n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"房型名称"}},[n("el-input",{attrs:{placeholder:"请输入房型名称"},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"item.name"}})],1)],1),n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"可住人数"}},[n("el-input",{attrs:{placeholder:"请输入可住人数"},model:{value:t.number,callback:function(n){e.$set(t,"number",n)},expression:"item.number"}})],1)],1),n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"房型数量"}},[n("el-input",{attrs:{placeholder:"请输入房型数量"},model:{value:e.form.amount,callback:function(t){e.$set(e.form,"amount",t)},expression:"form.amount"}})],1)],1),n("el-col",{attrs:{span:4}},[n("el-form-item",{attrs:{label:"面积"}},[n("el-input",{attrs:{placeholder:"请输入面积"},model:{value:t.area,callback:function(n){e.$set(t,"area",n)},expression:"item.area"}})],1)],1),n("el-col",{attrs:{span:4}},[n("el-form-item",{attrs:{label:"楼层"}},[n("el-input",{attrs:{placeholder:"请输入楼层"},model:{value:t.floor,callback:function(n){e.$set(t,"floor",n)},expression:"item.floor"}})],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"床型"}},[n("el-input",{attrs:{placeholder:"请输入床型"},model:{value:t.mattess,callback:function(n){e.$set(t,"mattess",n)},expression:"item.mattess"}})],1)],1),n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"餐食"}},[n("el-input",{attrs:{placeholder:"请输入餐食"},model:{value:t.meal,callback:function(n){e.$set(t,"meal",n)},expression:"item.meal"}})],1)],1),n("el-col",{attrs:{span:5}},[n("el-form-item",{attrs:{label:"窗户"}},[n("el-input",{attrs:{placeholder:"请输入窗户"},model:{value:t.window,callback:function(n){e.$set(t,"window",n)},expression:"item.window"}})],1)],1),n("el-col",{attrs:{span:4}},[n("el-form-item",{attrs:{label:"房型"}},[n("el-input",{attrs:{placeholder:"请输入房型"},model:{value:t.type,callback:function(n){e.$set(t,"type",n)},expression:"item.type"}})],1)],1),n("el-col",{attrs:{span:4}},[n("el-form-item",{attrs:{label:"房价"}},[n("el-input",{attrs:{placeholder:"请输入房价"},model:{value:t.price,callback:function(n){e.$set(t,"price",n)},expression:"item.price"}})],1)],1)],1)],1)})),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{staticClass:"hotel_imgs",attrs:{label:"酒店图片"}},[n("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove}},[n("i",{staticClass:"el-icon-plus"})]),n("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[e._v("建议图片尺寸为:210*160")])],1)],1)],1),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:" "}},[n("el-button",{attrs:{type:"normal",icon:"el-icon-plus"},on:{click:e.addHotelType}},[e._v("添加房型")])],1)],1)],1)],2)])],1)],1),n("el-form-item",{staticStyle:{position:"fixed",bottom:"20px",right:"60px"}},[n("el-button",{attrs:{type:"primary"}},[e._v("预览")]),n("el-button",{attrs:{type:"success"}},[e._v("发布")]),n("el-button",{attrs:{type:"default"}},[e._v("保存并新增")]),n("el-button",{attrs:{type:"default"}},[e._v("保存")]),n("el-button",{attrs:{type:"danger",plain:""}},[e._v("删除")])],1)],1)],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("span",[e._v("会议管理>")]),e._v("新增会议")])}],a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editor"},[n("div",{ref:"toolbar",staticClass:"toolbar"}),n("div",{ref:"editor",staticClass:"text"})])},r=[],l=n("49f2"),s=n.n(l),c={name:"editoritem",data:function(){return{editor:null,info_:null}},model:{prop:"value",event:"change"},props:{value:{type:String,default:""},isClear:{type:Boolean,default:!1}},watch:{isClear:function(e){e&&(this.editor.txt.clear(),this.info_=null)},value:function(e){e!==this.editor.txt.html()&&this.editor.txt.html(this.value)}},mounted:function(){this.seteditor(),this.editor.txt.html(this.value)},methods:{seteditor:function(){var e=this;this.editor=new s.a(this.$refs.toolbar,this.$refs.editor),this.editor.customConfig.uploadImgShowBase64=!1,this.editor.customConfig.uploadImgServer="/api/admin/uploadfile",this.editor.customConfig.uploadImgHeaders={},this.editor.customConfig.uploadFileName="file",this.editor.customConfig.uploadImgMaxSize=2097152,this.editor.customConfig.uploadImgMaxLength=6,this.editor.customConfig.uploadImgTimeout=18e4,this.editor.customConfig.menus=["head","bold","fontSize","fontName","italic","underline","strikeThrough","foreColor","backColor","link","list","justify","quote","emoticon","image","table","video","code","undo","redo","fullscreen"],this.editor.customConfig.uploadImgHooks={fail:function(e,t,n){},success:function(e,t,n){},timeout:function(e,t){},error:function(e,t){},customInsert:function(e,t,n){var i=t.data.url;console.log(t),e(i)}},this.editor.customConfig.onchange=function(t){e.info_=t,e.$emit("change",e.info_)},this.editor.create()}}},A=c,d=(n("75e1"),n("5d22")),u=Object(d["a"])(A,a,r,!1,null,"55e58fac",null),p=u.exports,f={components:{fuEditor:p},data:function(){return{form:{is_signup:0,is_popular:0,is_recommend:0,signup_fields:[{name:"姓名",id:"1"},{name:"性别",id:"2"},{name:"年龄",id:"3"},{name:"职务",id:"4"},{name:"职称",id:"5"},{name:"职称",id:"5"}],speaker:[{name:"",intruduce:""}],hotel:{type:[{}]}},optionList:[{name:"成都交通",id:"1"},{name:"成都交通",id:"1"}],organizerList:[],cityList:[],activeName:"first",imageUrl:""}},methods:{handleAvatarSuccess:function(){},beforeAvatarUpload:function(){},handleClick:function(){},addSpeaker:function(){this.form.speaker.push({name:"",intruduce:""})},clearSpeaker:function(e){this.form.speaker.splice(e,1)},addHotelType:function(){this.form.hotel.type.push({})},handleChangeCity:function(e){console.log(e,222222222)},gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getPermissions:function(){var e=this;this.$api.getUserPermissions().then((function(t){e.data=t.data.data}))},getData:function(){var e=this;this.form;this.$api.getAllOrganizer().then((function(t){e.organizerList=t.data.data})),this.$api.getCityList().then((function(t){e.cityList=t.data.data}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.deleteEnterprise({id:e}).then((function(e){t.$message({message:"删除成功",type:"success"}),t.getData()}))}))}},created:function(){this.getData()}},h=f,m=(n("7173"),Object(d["a"])(h,i,o,!1,null,"841af748",null));t["default"]=m.exports},"36e0":function(e,t,n){},"49f2":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(){"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;while(--n>=0&&t.item(n)!==this);return n>-1})};function t(e){var t=void 0;return t=document.createElement("div"),t.innerHTML=e,t.children}function n(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}function i(e){var t=document.querySelectorAll(e);return n(t)?t:[t]}var o=[];function a(e){if(e){if(e instanceof a)return e;this.selector=e;var o=e.nodeType,r=[];9===o||1===o?r=[e]:n(e)||e instanceof Array?r=e:"string"===typeof e&&(e=e.replace("/\n/mg","").trim(),r=0===e.indexOf("<")?t(e):i(e));var l=r.length;if(!l)return this;var s=void 0;for(s=0;s<l;s++)this[s]=r[s];this.length=l}}function r(e){return new a(e)}a.prototype={constructor:a,forEach:function(e){var t=void 0;for(t=0;t<this.length;t++){var n=this[t],i=e.call(n,n,t);if(!1===i)break}return this},clone:function(e){var t=[];return this.forEach((function(n){t.push(n.cloneNode(!!e))})),r(t)},get:function(e){var t=this.length;return e>=t&&(e%=t),r(this[e])},first:function(){return this.get(0)},last:function(){var e=this.length;return this.get(e-1)},on:function(e,t,n){n||(n=t,t=null);var i=[];return i=e.split(/\s+/),this.forEach((function(e){i.forEach((function(i){i&&(o.push({elem:e,type:i,fn:n}),t?e.addEventListener(i,(function(e){var i=e.target;i.matches(t)&&n.call(i,e)})):e.addEventListener(i,n))}))}))},off:function(e,t){return this.forEach((function(n){n.removeEventListener(e,t)}))},attr:function(e,t){return null==t?this[0].getAttribute(e):this.forEach((function(n){n.setAttribute(e,t)}))},addClass:function(e){return e?this.forEach((function(t){var n=void 0;t.className?(n=t.className.split(/\s/),n=n.filter((function(e){return!!e.trim()})),n.indexOf(e)<0&&n.push(e),t.className=n.join(" ")):t.className=e})):this},removeClass:function(e){return e?this.forEach((function(t){var n=void 0;t.className&&(n=t.className.split(/\s/),n=n.filter((function(t){return t=t.trim(),!(!t||t===e)})),t.className=n.join(" "))})):this},css:function(e,t){var n=e+":"+t+";";return this.forEach((function(t){var i=(t.getAttribute("style")||"").trim(),o=void 0,a=[];i?(o=i.split(";"),o.forEach((function(e){var t=e.split(":").map((function(e){return e.trim()}));2===t.length&&a.push(t[0]+":"+t[1])})),a=a.map((function(t){return 0===t.indexOf(e)?n:t})),a.indexOf(n)<0&&a.push(n),t.setAttribute("style",a.join("; "))):t.setAttribute("style",n)}))},show:function(){return this.css("display","block")},hide:function(){return this.css("display","none")},children:function(){var e=this[0];return e?r(e.children):null},childNodes:function(){var e=this[0];return e?r(e.childNodes):null},append:function(e){return this.forEach((function(t){e.forEach((function(e){t.appendChild(e)}))}))},remove:function(){return this.forEach((function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}}))},isContain:function(e){var t=this[0],n=e[0];return t.contains(n)},getSizeData:function(){var e=this[0];return e.getBoundingClientRect()},getNodeName:function(){var e=this[0];return e.nodeName},find:function(e){var t=this[0];return r(t.querySelectorAll(e))},text:function(e){if(e)return this.forEach((function(t){t.innerHTML=e}));var t=this[0];return t.innerHTML.replace(/<.*?>/g,(function(){return""}))},html:function(e){var t=this[0];return null==e?t.innerHTML:(t.innerHTML=e,this)},val:function(){var e=this[0];return e.value.trim()},focus:function(){return this.forEach((function(e){e.focus()}))},parent:function(){var e=this[0];return r(e.parentElement)},parentUntil:function(e,t){var n=document.querySelectorAll(e),i=n.length;if(!i)return null;var o=t||this[0];if("BODY"===o.nodeName)return null;var a=o.parentElement,l=void 0;for(l=0;l<i;l++)if(a===n[l])return r(a);return this.parentUntil(e,a)},equal:function(e){return 1===e.nodeType?this[0]===e:this[0]===e[0]},insertBefore:function(e){var t=r(e),n=t[0];return n?this.forEach((function(e){var t=n.parentNode;t.insertBefore(e,n)})):this},insertAfter:function(e){var t=r(e),n=t[0];return n?this.forEach((function(e){var t=n.parentNode;t.lastChild===n?t.appendChild(e):t.insertBefore(e,n.nextSibling)})):this}},r.offAll=function(){o.forEach((function(e){var t=e.elem,n=e.type,i=e.fn;t.removeEventListener(n,i)}))};var l={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","foreColor","backColor","link","list","justify","quote","emoticon","image","table","video","code","undo","redo"],fontNames:["宋体","微软雅黑","Arial","Tahoma","Verdana"],colors:["#000000","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b","#ffffff"],emotions:[{title:"默认",type:"image",content:[{alt:"[坏笑]",src:"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/50/pcmoren_huaixiao_org.png"},{alt:"[舔屏]",src:"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/40/pcmoren_tian_org.png"},{alt:"[污]",src:"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3c/pcmoren_wu_org.png"}]},{title:"新浪",type:"image",content:[{src:"http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/7a/shenshou_thumb.gif",alt:"[草泥马]"},{src:"http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/60/horse2_thumb.gif",alt:"[神马]"},{src:"http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/fuyun_thumb.gif",alt:"[浮云]"}]},{title:"emoji",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😓 😪 😴 🙄 🤔 😬 🤐".split(/\s/)}],zIndex:1e4,debug:!1,linkCheck:function(e,t){return!0},linkImgCheck:function(e){return!0},pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e},showLinkImg:!0,linkImgCallback:function(e){},uploadImgMaxSize:5242880,uploadImgShowBase64:!1,uploadFileName:"",uploadImgParams:{},uploadImgHeaders:{},withCredentials:!1,uploadImgTimeout:1e4,uploadImgHooks:{before:function(e,t,n){},success:function(e,t,n){},fail:function(e,t,n){},error:function(e,t){},timeout:function(e,t){}},qiniu:!1},s={_ua:navigator.userAgent,isWebkit:function(){var e=/webkit/i;return e.test(this._ua)},isIE:function(){return"ActiveXObject"in window}};function c(e,t){var n=void 0,i=void 0;for(n in e)if(e.hasOwnProperty(n)&&(i=t.call(e,n,e[n]),!1===i))break}function A(e,t){var n=void 0,i=void 0,o=void 0,a=e.length||0;for(n=0;n<a;n++)if(i=e[n],o=t.call(e,i,n),!1===o)break}function d(e){return e+Math.random().toString().slice(2)}function u(e){return null==e?"":e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}function p(e){return"function"===typeof e}function f(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-bold"></i>\n </div>'),this.type="click",this._active=!1}f.prototype={constructor:f,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("bold"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("bold")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}};var h=function(e,t){var n=e.config.langArgs||[],i=t;return n.forEach((function(e){var t=e.reg,n=e.val;t.test(i)&&(i=i.replace(t,(function(){return n})))})),i},m=function(){};function g(e,t){var n=this,i=e.editor;this.menu=e,this.opt=t;var o=r('<div class="w-e-droplist"></div>'),a=t.$title,l=void 0;a&&(l=a.html(),l=h(i,l),a.html(l),a.addClass("w-e-dp-title"),o.append(a));var s=t.list||[],c=t.type||"list",A=t.onClick||m,d=r('<ul class="'+("list"===c?"w-e-list":"w-e-block")+'"></ul>');o.append(d),s.forEach((function(e){var t=e.$elem,o=t.html();o=h(i,o),t.html(o);var a=e.value,l=r('<li class="w-e-item"></li>');t&&(l.append(t),d.append(l),l.on("click",(function(e){A(a),n.hideTimeoutId=setTimeout((function(){n.hide()}),0)})))})),o.on("mouseleave",(function(e){n.hideTimeoutId=setTimeout((function(){n.hide()}),0)})),this.$container=o,this._rendered=!1,this._show=!1}function v(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-header"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new g(this,{width:100,$title:r("<p>设置标题</p>"),type:"list",list:[{$elem:r("<h1>H1</h1>"),value:"<h1>"},{$elem:r("<h2>H2</h2>"),value:"<h2>"},{$elem:r("<h3>H3</h3>"),value:"<h3>"},{$elem:r("<h4>H4</h4>"),value:"<h4>"},{$elem:r("<h5>H5</h5>"),value:"<h5>"},{$elem:r("<p>正文</p>"),value:"<p>"}],onClick:function(e){t._command(e)}})}function w(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-text-heigh"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new g(this,{width:160,$title:r("<p>字号</p>"),type:"list",list:[{$elem:r('<span style="font-size: x-small;">x-small</span>'),value:"1"},{$elem:r('<span style="font-size: small;">small</span>'),value:"2"},{$elem:r("<span>normal</span>"),value:"3"},{$elem:r('<span style="font-size: large;">large</span>'),value:"4"},{$elem:r('<span style="font-size: x-large;">x-large</span>'),value:"5"},{$elem:r('<span style="font-size: xx-large;">xx-large</span>'),value:"6"}],onClick:function(e){t._command(e)}})}function b(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-font"></i></div>'),this.type="droplist",this._active=!1;var n=e.config,i=n.fontNames||[];this.droplist=new g(this,{width:100,$title:r("<p>字体</p>"),type:"list",list:i.map((function(e){return{$elem:r('<span style="font-family: '+e+';">'+e+"</span>"),value:e}})),onClick:function(e){t._command(e)}})}g.prototype={constructor:g,show:function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu,t=e.$elem,n=this.$container;if(!this._show){if(this._rendered)n.show();else{var i=t.getSizeData().height||0,o=this.opt.width||100;n.css("margin-top",i+"px").css("width",o+"px"),t.append(n),this._rendered=!0}this._show=!0}},hide:function(){this.showTimeoutId&&clearTimeout(this.showTimeoutId);var e=this.$container;this._show&&(e.hide(),this._show=!1)}},v.prototype={constructor:v,_command:function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();t.$textElem.equal(n)||t.cmd.do("formatBlock",e)},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=/^h/i,o=t.cmd.queryCommandValue("formatBlock");i.test(o)?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},w.prototype={constructor:w,_command:function(e){var t=this.editor;t.cmd.do("fontSize",e)}},b.prototype={constructor:b,_command:function(e){var t=this.editor;t.cmd.do("fontName",e)}};var E=function(){},y=[];function C(e,t){this.menu=e,this.opt=t}function x(e){this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-link"></i></div>'),this.type="panel",this._active=!1}function B(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-italic"></i>\n </div>'),this.type="click",this._active=!1}function I(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-redo"></i>\n </div>'),this.type="click",this._active=!1}function Q(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-strikethrough"></i>\n </div>'),this.type="click",this._active=!1}function k(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-underline"></i>\n </div>'),this.type="click",this._active=!1}function _(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-undo"></i>\n </div>'),this.type="click",this._active=!1}function S(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-list2"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new g(this,{width:120,$title:r("<p>设置列表</p>"),type:"list",list:[{$elem:r('<span><i class="w-e-icon-list-numbered"></i> 有序列表</span>'),value:"insertOrderedList"},{$elem:r('<span><i class="w-e-icon-list2"></i> 无序列表</span>'),value:"insertUnorderedList"}],onClick:function(e){t._command(e)}})}function M(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-paragraph-left"></i></div>'),this.type="droplist",this._active=!1,this.droplist=new g(this,{width:100,$title:r("<p>对齐方式</p>"),type:"list",list:[{$elem:r('<span><i class="w-e-icon-paragraph-left"></i> 靠左</span>'),value:"justifyLeft"},{$elem:r('<span><i class="w-e-icon-paragraph-center"></i> 居中</span>'),value:"justifyCenter"},{$elem:r('<span><i class="w-e-icon-paragraph-right"></i> 靠右</span>'),value:"justifyRight"}],onClick:function(e){t._command(e)}})}function D(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-pencil2"></i></div>'),this.type="droplist";var n=e.config,i=n.colors||[];this._active=!1,this.droplist=new g(this,{width:120,$title:r("<p>文字颜色</p>"),type:"inline-block",list:i.map((function(e){return{$elem:r('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}})),onClick:function(e){t._command(e)}})}function N(e){var t=this;this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-paint-brush"></i></div>'),this.type="droplist";var n=e.config,i=n.colors||[];this._active=!1,this.droplist=new g(this,{width:120,$title:r("<p>背景色</p>"),type:"inline-block",list:i.map((function(e){return{$elem:r('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}})),onClick:function(e){t._command(e)}})}function F(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-quotes-left"></i>\n </div>'),this.type="click",this._active=!1}function T(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-terminal"></i>\n </div>'),this.type="panel",this._active=!1}function R(e){this.editor=e,this.$elem=r('<div class="w-e-menu">\n <i class="w-e-icon-happy"></i>\n </div>'),this.type="panel",this._active=!1}function U(e){this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-table2"></i></div>'),this.type="panel",this._active=!1}function Y(e){this.editor=e,this.$elem=r('<div class="w-e-menu"><i class="w-e-icon-play"></i></div>'),this.type="panel",this._active=!1}function P(e){this.editor=e;var t=d("w-e-img");this.$elem=r('<div class="w-e-menu" id="'+t+'"><i class="w-e-icon-image"></i></div>'),e.imgMenuId=t,this.type="panel",this._active=!1}C.prototype={constructor:C,show:function(){var e=this,t=this.menu;if(!(y.indexOf(t)>=0)){var n=t.editor,i=r("body"),o=n.$textContainerElem,a=this.opt,l=r('<div class="w-e-panel-container"></div>'),s=a.width||300;l.css("width",s+"px").css("margin-left",(0-s)/2+"px");var c=r('<i class="w-e-icon-close w-e-panel-close"></i>');l.append(c),c.on("click",(function(){e.hide()}));var A=r('<ul class="w-e-panel-tab-title"></ul>'),d=r('<div class="w-e-panel-tab-content"></div>');l.append(A).append(d);var u=a.height;u&&d.css("height",u+"px").css("overflow-y","auto");var p=a.tabs||[],f=[],m=[];p.forEach((function(e,t){if(e){var i=e.title||"",o=e.tpl||"";i=h(n,i),o=h(n,o);var a=r('<li class="w-e-item">'+i+"</li>");A.append(a);var l=r(o);d.append(l),a._index=t,f.push(a),m.push(l),0===t?(a._active=!0,a.addClass("w-e-active")):l.hide(),a.on("click",(function(e){a._active||(f.forEach((function(e){e._active=!1,e.removeClass("w-e-active")})),m.forEach((function(e){e.hide()})),a._active=!0,a.addClass("w-e-active"),l.show())}))}})),l.on("click",(function(e){e.stopPropagation()})),i.on("click",(function(t){e.hide()})),o.append(l),p.forEach((function(t,n){if(t){var i=t.events||[];i.forEach((function(t){var i=t.selector,o=t.type,a=t.fn||E,r=m[n];r.find(i).on(o,(function(t){t.stopPropagation();var n=a(t);n&&e.hide()}))}))}}));var g=l.find("input[type=text],textarea");g.length&&g.get(0).focus(),this.$container=l,this._hideOtherPanels(),y.push(t)}},hide:function(){var e=this.menu,t=this.$container;t&&t.remove(),y=y.filter((function(t){return t!==e}))},_hideOtherPanels:function(){y.length&&y.forEach((function(e){var t=e.panel||{};t.hide&&t.hide()}))}},x.prototype={constructor:x,onClick:function(e){var t=this.editor,n=void 0;if(this._active){if(n=t.selection.getSelectionContainerElem(),!n)return;t.selection.createRangeByElem(n),t.selection.restoreSelection(),this._createPanel(n.text(),n.attr("href"))}else t.selection.isSelectionEmpty()?this._createPanel("",""):this._createPanel(t.selection.getSelectionText(),"")},_createPanel:function(e,t){var n=this,i=d("input-link"),o=d("input-text"),a=d("btn-ok"),l=d("btn-del"),s=this._active?"inline-block":"none",c=new C(this,{width:300,tabs:[{title:"链接",tpl:'<div>\n <input id="'+o+'" type="text" class="block" value="'+e+'" placeholder="链接文字"/></td>\n <input id="'+i+'" type="text" class="block" value="'+t+'" placeholder="http://..."/></td>\n <div class="w-e-button-container">\n <button id="'+a+'" class="right">插入</button>\n <button id="'+l+'" class="gray right" style="display:'+s+'">删除链接</button>\n </div>\n </div>',events:[{selector:"#"+a,type:"click",fn:function(){var e=r("#"+i),t=r("#"+o),a=e.val(),l=t.val();return n._insertLink(l,a),!0}},{selector:"#"+l,type:"click",fn:function(){return n._delLink(),!0}}]}]});c.show(),this.panel=c},_delLink:function(){if(this._active){var e=this.editor,t=e.selection.getSelectionContainerElem();if(t){var n=e.selection.getSelectionText();e.cmd.do("insertHTML","<span>"+n+"</span>")}}},_insertLink:function(e,t){var n=this.editor,i=n.config,o=i.linkCheck,a=!0;o&&"function"===typeof o&&(a=o(e,t)),!0===a?n.cmd.do("insertHTML",'<a href="'+t+'" target="_blank">'+e+"</a>"):alert(a)},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();i&&("A"===i.getNodeName()?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active")))}},B.prototype={constructor:B,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("italic"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("italic")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},I.prototype={constructor:I,onClick:function(e){var t=this.editor;t.cmd.do("redo")}},Q.prototype={constructor:Q,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("strikeThrough"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("strikeThrough")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},k.prototype={constructor:k,onClick:function(e){var t=this.editor,n=t.selection.isSelectionEmpty();n&&t.selection.createEmptyRange(),t.cmd.do("underline"),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("underline")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},_.prototype={constructor:_,onClick:function(e){var t=this.editor;t.cmd.do("undo")}},S.prototype={constructor:S,_command:function(e){var t=this.editor,n=t.$textElem;if(t.selection.restoreSelection(),!t.cmd.queryCommandState(e)){t.cmd.do(e);var i=t.selection.getSelectionContainerElem();if("LI"===i.getNodeName()&&(i=i.parent()),!1!==/^ol|ul$/i.test(i.getNodeName())&&!i.equal(n)){var o=i.parent();o.equal(n)||(i.insertAfter(o),o.remove())}}},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t.cmd.queryCommandState("insertUnOrderedList")||t.cmd.queryCommandState("insertOrderedList")?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},M.prototype={constructor:M,_command:function(e){var t=this.editor;t.cmd.do(e)}},D.prototype={constructor:D,_command:function(e){var t=this.editor;t.cmd.do("foreColor",e)}},N.prototype={constructor:N,_command:function(e){var t=this.editor;t.cmd.do("backColor",e)}},F.prototype={constructor:F,onClick:function(e){var t=this.editor,n=t.selection.getSelectionContainerElem(),i=n.getNodeName();if(s.isIE()){var o=void 0,a=void 0;if("P"===i)return o=n.text(),a=r("<blockquote>"+o+"</blockquote>"),a.insertAfter(n),void n.remove();"BLOCKQUOTE"===i&&(o=n.text(),a=r("<p>"+o+"</p>"),a.insertAfter(n),n.remove())}else"BLOCKQUOTE"===i?t.cmd.do("formatBlock","<P>"):t.cmd.do("formatBlock","<BLOCKQUOTE>")},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=/^BLOCKQUOTE$/i,o=t.cmd.queryCommandValue("formatBlock");i.test(o)?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}},T.prototype={constructor:T,onClick:function(e){var t=this.editor,n=t.selection.getSelectionStartElem(),i=t.selection.getSelectionEndElem(),o=t.selection.isSelectionEmpty(),a=t.selection.getSelectionText(),l=void 0;if(n.equal(i))return o?void(this._active?this._createPanel(n.html()):this._createPanel()):(l=r("<code>"+a+"</code>"),t.cmd.do("insertElem",l),t.selection.createRangeByElem(l,!1),void t.selection.restoreSelection());t.selection.restoreSelection()},_createPanel:function(e){var t=this;e=e||"";var n=e?"edit":"new",i=d("texxt"),o=d("btn"),a=new C(this,{width:500,tabs:[{title:"插入代码",tpl:'<div>\n <textarea id="'+i+'" style="height:145px;;">'+e+'</textarea>\n <div class="w-e-button-container">\n <button id="'+o+'" class="right">插入</button>\n </div>\n <div>',events:[{selector:"#"+o,type:"click",fn:function(){var e=r("#"+i),o=e.val()||e.html();return o=u(o),"new"===n?t._insertCode(o):t._updateCode(o),!0}}]}]});a.show(),this.panel=a},_insertCode:function(e){var t=this.editor;t.cmd.do("insertHTML","<pre><code>"+e+"</code></pre><p><br></p>")},_updateCode:function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();n&&(n.html(e),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var o=i.parent();"CODE"===i.getNodeName()&&"PRE"===o.getNodeName()?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}}},R.prototype={constructor:R,onClick:function(){this._createPanel()},_createPanel:function(){var e=this,t=this.editor,n=t.config,i=n.emotions||[],o=[];i.forEach((function(t){var n=t.type,i=t.content||[],a="";"emoji"===n&&i.forEach((function(e){e&&(a+='<span class="w-e-item">'+e+"</span>")})),"image"===n&&i.forEach((function(e){var t=e.src,n=e.alt;t&&(a+='<span class="w-e-item"><img src="'+t+'" alt="'+n+'" data-w-e="1"/></span>')})),o.push({title:t.title,tpl:'<div class="w-e-emoticon-container">'+a+"</div>",events:[{selector:"span.w-e-item",type:"click",fn:function(t){var n=t.target,i=r(n),o=i.getNodeName(),a=void 0;return a="IMG"===o?i.parent().html():"<span>"+i.html()+"</span>",e._insert(a),!0}}]})}));var a=new C(this,{width:300,height:200,tabs:o});a.show(),this.panel=a},_insert:function(e){var t=this.editor;t.cmd.do("insertHTML",e)}},U.prototype={constructor:U,onClick:function(){this._active?this._createEditPanel():this._createInsertPanel()},_createInsertPanel:function(){var e=this,t=d("btn"),n=d("row"),i=d("col"),o=new C(this,{width:250,tabs:[{title:"插入表格",tpl:'<div>\n <p style="text-align:left; padding:5px 0;">\n 创建\n <input id="'+n+'" type="text" value="5" style="width:40px;text-align:center;"/>\n 行\n <input id="'+i+'" type="text" value="5" style="width:40px;text-align:center;"/>\n 列的表格\n </p>\n <div class="w-e-button-container">\n <button id="'+t+'" class="right">插入</button>\n </div>\n </div>',events:[{selector:"#"+t,type:"click",fn:function(){var t=parseInt(r("#"+n).val()),o=parseInt(r("#"+i).val());return t&&o&&t>0&&o>0&&e._insert(t,o),!0}}]}]});o.show(),this.panel=o},_insert:function(e,t){var n=void 0,i=void 0,o='<table border="0" width="100%" cellpadding="0" cellspacing="0">';for(n=0;n<e;n++){if(o+="<tr>",0===n)for(i=0;i<t;i++)o+="<th>&nbsp;</th>";else for(i=0;i<t;i++)o+="<td>&nbsp;</td>";o+="</tr>"}o+="</table><p><br></p>";var a=this.editor;a.cmd.do("insertHTML",o),a.cmd.do("enableObjectResizing",!1),a.cmd.do("enableInlineTableEditing",!1)},_createEditPanel:function(){var e=this,t=d("add-row"),n=d("add-col"),i=d("del-row"),o=d("del-col"),a=d("del-table"),r=new C(this,{width:320,tabs:[{title:"编辑表格",tpl:'<div>\n <div class="w-e-button-container" style="border-bottom:1px solid #f1f1f1;padding-bottom:5px;margin-bottom:5px;">\n <button id="'+t+'" class="left">增加行</button>\n <button id="'+i+'" class="red left">删除行</button>\n <button id="'+n+'" class="left">增加列</button>\n <button id="'+o+'" class="red left">删除列</button>\n </div>\n <div class="w-e-button-container">\n <button id="'+a+'" class="gray left">删除表格</button>\n </dv>\n </div>',events:[{selector:"#"+t,type:"click",fn:function(){return e._addRow(),!0}},{selector:"#"+n,type:"click",fn:function(){return e._addCol(),!0}},{selector:"#"+i,type:"click",fn:function(){return e._delRow(),!0}},{selector:"#"+o,type:"click",fn:function(){return e._delCol(),!0}},{selector:"#"+a,type:"click",fn:function(){return e._delTable(),!0}}]}]});r.show()},_getLocationData:function(){var e={},t=this.editor,n=t.selection.getSelectionContainerElem();if(n){var i=n.getNodeName();if("TD"===i||"TH"===i){var o=n.parent(),a=o.children(),r=a.length;a.forEach((function(t,i){if(t===n[0])return e.td={index:i,elem:t,length:r},!1}));var l=o.parent(),s=l.children(),c=s.length;return s.forEach((function(t,n){if(t===o[0])return e.tr={index:n,elem:t,length:c},!1})),e}}},_addRow:function(){var e=this._getLocationData();if(e){var t=e.tr,n=r(t.elem),i=e.td,o=i.length,a=document.createElement("tr"),l="",s=void 0;for(s=0;s<o;s++)l+="<td>&nbsp;</td>";a.innerHTML=l,r(a).insertAfter(n)}},_addCol:function(){var e=this._getLocationData();if(e){var t=e.tr,n=e.td,i=n.index,o=r(t.elem),a=o.parent(),l=a.children();l.forEach((function(e){var t=r(e),n=t.children(),o=n.get(i),a=o.getNodeName().toLowerCase(),l=document.createElement(a);r(l).insertAfter(o)}))}},_delRow:function(){var e=this._getLocationData();if(e){var t=e.tr,n=r(t.elem);n.remove()}},_delCol:function(){var e=this._getLocationData();if(e){var t=e.tr,n=e.td,i=n.index,o=r(t.elem),a=o.parent(),l=a.children();l.forEach((function(e){var t=r(e),n=t.children(),o=n.get(i);o.remove()}))}},_delTable:function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(t){var n=t.parentUntil("table");n&&n.remove()}},tryChangeActive:function(e){var t=this.editor,n=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var o=i.getNodeName();"TD"===o||"TH"===o?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}}},Y.prototype={constructor:Y,onClick:function(){this._createPanel()},_createPanel:function(){var e=this,t=d("text-val"),n=d("btn"),i=new C(this,{width:350,tabs:[{title:"插入视频",tpl:'<div>\n <input id="'+t+'" type="text" class="block" placeholder="格式如:<iframe src=... ></iframe>"/>\n <div class="w-e-button-container">\n <button id="'+n+'" class="right">插入</button>\n </div>\n </div>',events:[{selector:"#"+n,type:"click",fn:function(){var n=r("#"+t),i=n.val().trim();return i&&e._insert(i),!0}}]}]});i.show(),this.panel=i},_insert:function(e){var t=this.editor;t.cmd.do("insertHTML",e+"<p><br></p>")}},P.prototype={constructor:P,onClick:function(){var e=this.editor,t=e.config;t.qiniu||(this._active?this._createEditPanel():this._createInsertPanel())},_createEditPanel:function(){var e=this.editor,t=d("width-30"),n=d("width-50"),i=d("width-100"),o=d("del-btn"),a=[{title:"编辑图片",tpl:'<div>\n <div class="w-e-button-container" style="border-bottom:1px solid #f1f1f1;padding-bottom:5px;margin-bottom:5px;">\n <span style="float:left;font-size:14px;margin:4px 5px 0 5px;color:#333;">最大宽度:</span>\n <button id="'+t+'" class="left">30%</button>\n <button id="'+n+'" class="left">50%</button>\n <button id="'+i+'" class="left">100%</button>\n </div>\n <div class="w-e-button-container">\n <button id="'+o+'" class="gray left">删除图片</button>\n </dv>\n </div>',events:[{selector:"#"+t,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","30%"),!0}},{selector:"#"+n,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","50%"),!0}},{selector:"#"+i,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","100%"),!0}},{selector:"#"+o,type:"click",fn:function(){var t=e._selectedImg;return t&&t.remove(),!0}}]}],r=new C(this,{width:300,tabs:a});r.show(),this.panel=r},_createInsertPanel:function(){var e=this.editor,t=e.uploadImg,n=e.config,i=d("up-trigger"),o=d("up-file"),a=d("link-url"),l=d("link-btn"),s=[{title:"上传图片",tpl:'<div class="w-e-up-img-container">\n <div id="'+i+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+o+'" type="file" multiple="multiple" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp"/>\n </div>\n </div>',events:[{selector:"#"+i,type:"click",fn:function(){var e=r("#"+o),t=e[0];if(!t)return!0;t.click()}},{selector:"#"+o,type:"change",fn:function(){var e=r("#"+o),n=e[0];if(!n)return!0;var i=n.files;return i.length&&t.uploadImg(i),!0}}]},{title:"网络图片",tpl:'<div>\n <input id="'+a+'" type="text" class="block" placeholder="图片链接"/></td>\n <div class="w-e-button-container">\n <button id="'+l+'" class="right">插入</button>\n </div>\n </div>',events:[{selector:"#"+l,type:"click",fn:function(){var e=r("#"+a),n=e.val().trim();return n&&t.insertLinkImg(n),!0}}]}],c=[];(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg)&&window.FileReader&&c.push(s[0]),n.showLinkImg&&c.push(s[1]);var A=new C(this,{width:300,tabs:c});A.show(),this.panel=A},tryChangeActive:function(e){var t=this.editor,n=this.$elem;t._selectedImg?(this._active=!0,n.addClass("w-e-active")):(this._active=!1,n.removeClass("w-e-active"))}};var L={};function H(e){this.editor=e,this.menus={}}function z(e){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,n=void 0;return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),u(n)}function j(e,t,n){var i=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,o=void 0,a=void 0;if(null==i?o=window.clipboardData&&window.clipboardData.getData("text"):(o=i.getData("text/plain"),a=i.getData("text/html")),!a&&o&&(a="<p>"+u(o)+"</p>"),a){var r=a.split("</html>");return 2===r.length&&(a=r[0]),a=a.replace(/<(meta|script|link).+?>/gim,""),a=a.replace(/<!--.*?-->/gm,""),a=a.replace(/\s?data-.+?=('|").+?('|")/gim,""),n&&(a=a.replace(/<img.+?>/gim,"")),a=t?a.replace(/\s?(class|style)=('|").*?('|")/gim,""):a.replace(/\s?class=('|").*?('|")/gim,""),a}}function $(e){var t=[],n=z(e);if(n)return t;var i=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData||{},o=i.items;return o?(c(o,(function(e,n){var i=n.type;/image/i.test(i)&&t.push(n.getAsFile())})),t):t}function G(e){var t=[],n=e.childNodes()||[];return n.forEach((function(e){var n=void 0,i=e.nodeType;if(3===i&&(n=e.textContent,n=u(n)),1===i){n={},n.tag=e.nodeName.toLowerCase();for(var o=[],a=e.attributes||{},l=a.length||0,s=0;s<l;s++){var c=a[s];o.push({name:c.name,value:c.value})}n.attrs=o,n.children=G(r(e))}t.push(n)})),t}function J(e){this.editor=e}function O(e){this.editor=e}function V(e){this.editor=e,this._currentRange=null}function K(e){this.editor=e,this._time=0,this._isShow=!1,this._isRender=!1,this._timeoutId=0,this.$textContainer=e.$textContainerElem,this.$bar=r('<div class="w-e-progress"></div>')}L.bold=f,L.head=v,L.fontSize=w,L.fontName=b,L.link=x,L.italic=B,L.redo=I,L.strikeThrough=Q,L.underline=k,L.undo=_,L.list=S,L.justify=M,L.foreColor=D,L.backColor=N,L.quote=F,L.code=T,L.emoticon=R,L.table=U,L.video=Y,L.image=P,H.prototype={constructor:H,init:function(){var e=this,t=this.editor,n=t.config||{},i=n.menus||[];i.forEach((function(n){var i=L[n];i&&"function"===typeof i&&(e.menus[n]=new i(t))})),this._addToToolbar(),this._bindEvent()},_addToToolbar:function(){var e=this.editor,t=e.$toolbarElem,n=this.menus,i=e.config,o=i.zIndex+1;c(n,(function(e,n){var i=n.$elem;i&&(i.css("z-index",o),t.append(i))}))},_bindEvent:function(){var e=this.menus,t=this.editor;c(e,(function(e,n){var i=n.type;if(i){var o=n.$elem,a=n.droplist;n.panel;"click"===i&&n.onClick&&o.on("click",(function(e){null!=t.selection.getRange()&&n.onClick(e)})),"droplist"===i&&a&&o.on("mouseenter",(function(e){null!=t.selection.getRange()&&(a.showTimeoutId=setTimeout((function(){a.show()}),200))})).on("mouseleave",(function(e){a.hideTimeoutId=setTimeout((function(){a.hide()}),0)})),"panel"===i&&n.onClick&&o.on("click",(function(e){e.stopPropagation(),null!=t.selection.getRange()&&n.onClick(e)}))}}))},changeActive:function(){var e=this.menus;c(e,(function(e,t){t.tryChangeActive&&setTimeout((function(){t.tryChangeActive()}),100)}))}},J.prototype={constructor:J,init:function(){this._bindEvent()},clear:function(){this.html("<p><br></p>")},html:function(e){var t=this.editor,n=t.$textElem,i=void 0;if(null==e)return i=n.html(),i=i.replace(/\u200b/gm,""),i;n.html(e),t.initSelection()},getJSON:function(){var e=this.editor,t=e.$textElem;return G(t)},text:function(e){var t=this.editor,n=t.$textElem,i=void 0;if(null==e)return i=n.text(),i=i.replace(/\u200b/gm,""),i;n.text("<p>"+e+"</p>"),t.initSelection()},append:function(e){var t=this.editor,n=t.$textElem;n.append(r(e)),t.initSelection()},_bindEvent:function(){this._saveRangeRealTime(),this._enterKeyHandle(),this._clearHandle(),this._pasteHandle(),this._tabHandle(),this._imgHandle(),this._dragHandle()},_saveRangeRealTime:function(){var e=this.editor,t=e.$textElem;function n(t){e.selection.saveRange(),e.menus.changeActive()}t.on("keyup",n),t.on("mousedown",(function(e){t.on("mouseleave",n)})),t.on("mouseup",(function(e){n(),t.off("mouseleave",n)}))},_enterKeyHandle:function(){var e=this.editor,t=e.$textElem;function n(t){var n=r("<p><br></p>");n.insertBefore(t),e.selection.createRangeByElem(n,!0),e.selection.restoreSelection(),t.remove()}function i(i){var o=e.selection.getSelectionContainerElem(),a=o.parent();if("<code><br></code>"!==a.html()){if(a.equal(t)){var r=o.getNodeName();"P"!==r&&(o.text()||n(o))}}else n(o)}function o(t){var n=e.selection.getSelectionContainerElem();if(n){var i=n.parent(),o=n.getNodeName(),a=i.getNodeName();if("CODE"===o&&"PRE"===a&&e.cmd.queryCommandSupported("insertHTML")){if(!0===e._willBreakCode){var l=r("<p><br></p>");return l.insertAfter(i),e.selection.createRangeByElem(l,!0),e.selection.restoreSelection(),e._willBreakCode=!1,void t.preventDefault()}var s=e.selection.getRange().startOffset;e.cmd.do("insertHTML","\n"),e.selection.saveRange(),e.selection.getRange().startOffset===s&&e.cmd.do("insertHTML","\n");var c=n.html().length;e.selection.getRange().startOffset+1===c&&(e._willBreakCode=!0),t.preventDefault()}}}t.on("keyup",(function(e){13===e.keyCode&&i(e)})),t.on("keydown",(function(t){13===t.keyCode?o(t):e._willBreakCode=!1}))},_clearHandle:function(){var e=this.editor,t=e.$textElem;t.on("keydown",(function(e){if(8===e.keyCode){var n=t.html().toLowerCase().trim();"<p><br></p>"!==n||e.preventDefault()}})),t.on("keyup",(function(n){if(8===n.keyCode){var i=void 0,o=t.html().toLowerCase().trim();o&&"<br>"!==o||(i=r("<p><br/></p>"),t.html(""),t.append(i),e.selection.createRangeByElem(i,!1,!0),e.selection.restoreSelection())}}))},_pasteHandle:function(){var e=this.editor,t=e.config,n=t.pasteFilterStyle,i=t.pasteTextHandle,o=t.pasteIgnoreImg,a=e.$textElem,r=0;function l(){var e=Date.now(),t=!1;return e-r>=100&&(t=!0),r=e,t}function c(){r=0}a.on("paste",(function(t){if(!s.isIE()&&(t.preventDefault(),l())){var a=j(t,n,o),r=z(t);r=r.replace(/\n/gm,"<br>");var A=e.selection.getSelectionContainerElem();if(A){var d=A.getNodeName();if("CODE"===d||"PRE"===d)return i&&p(i)&&(r=""+(i(r)||"")),void e.cmd.do("insertHTML","<p>"+r+"</p>");if(a)try{i&&p(i)&&(a=""+(i(a)||"")),e.cmd.do("insertHTML",a)}catch(u){i&&p(i)&&(r=""+(i(r)||"")),e.cmd.do("insertHTML","<p>"+r+"</p>")}else c()}}})),a.on("paste",(function(t){if(!s.isIE()&&(t.preventDefault(),l())){var n=$(t);if(n&&n.length){var i=e.selection.getSelectionContainerElem();if(i){var o=i.getNodeName();if("CODE"!==o&&"PRE"!==o){var a=e.uploadImg;a.uploadImg(n)}}}}}))},_tabHandle:function(){var e=this.editor,t=e.$textElem;t.on("keydown",(function(t){if(9===t.keyCode&&e.cmd.queryCommandSupported("insertHTML")){var n=e.selection.getSelectionContainerElem();if(n){var i=n.parent(),o=n.getNodeName(),a=i.getNodeName();"CODE"===o&&"PRE"===a?e.cmd.do("insertHTML"," "):e.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;"),t.preventDefault()}}}))},_imgHandle:function(){var e=this.editor,t=e.$textElem;t.on("click","img",(function(t){var n=this,i=r(n);"1"!==i.attr("data-w-e")&&(e._selectedImg=i,e.selection.createRangeByElem(i),e.selection.restoreSelection())})),t.on("click keyup",(function(t){t.target.matches("img")||(e._selectedImg=null)}))},_dragHandle:function(){var e=this.editor,t=r(document);t.on("dragleave drop dragenter dragover",(function(e){e.preventDefault()}));var n=e.$textElem;n.on("drop",(function(t){t.preventDefault();var n=t.dataTransfer&&t.dataTransfer.files;if(n&&n.length){var i=e.uploadImg;i.uploadImg(n)}}))}},O.prototype={constructor:O,do:function(e,t){var n=this.editor;if(n._useStyleWithCSS||(document.execCommand("styleWithCSS",null,!0),n._useStyleWithCSS=!0),n.selection.getRange()){n.selection.restoreSelection();var i="_"+e;this[i]?this[i](t):this._execCommand(e,t),n.menus.changeActive(),n.selection.saveRange(),n.selection.restoreSelection(),n.change&&n.change()}},_insertHTML:function(e){var t=this.editor,n=t.selection.getRange();this.queryCommandSupported("insertHTML")?this._execCommand("insertHTML",e):n.insertNode?(n.deleteContents(),n.insertNode(r(e)[0])):n.pasteHTML&&n.pasteHTML(e)},_insertElem:function(e){var t=this.editor,n=t.selection.getRange();n.insertNode&&(n.deleteContents(),n.insertNode(e[0]))},_execCommand:function(e,t){document.execCommand(e,!1,t)},queryCommandValue:function(e){return document.queryCommandValue(e)},queryCommandState:function(e){return document.queryCommandState(e)},queryCommandSupported:function(e){return document.queryCommandSupported(e)}},V.prototype={constructor:V,getRange:function(){return this._currentRange},saveRange:function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);if(i&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){var o=this.editor,a=o.$textElem;a.isContain(i)&&(this._currentRange=n)}}}},collapseRange:function(e){null==e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},getSelectionText:function(){var e=this._currentRange;return e?this._currentRange.toString():""},getSelectionContainerElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.commonAncestorContainer,r(1===t.nodeType?t:t.parentNode)},getSelectionStartElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.startContainer,r(1===t.nodeType?t:t.parentNode)},getSelectionEndElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.endContainer,r(1===t.nodeType?t:t.parentNode)},isSelectionEmpty:function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},restoreSelection:function(){var e=window.getSelection();e.removeAllRanges(),e.addRange(this._currentRange)},createEmptyRange:function(){var e=this.editor,t=this.getRange(),n=void 0;if(t&&this.isSelectionEmpty())try{s.isWebkit()?(e.cmd.do("insertHTML","&#8203;"),t.setEnd(t.endContainer,t.endOffset+1),this.saveRange(t)):(n=r("<strong>&#8203;</strong>"),e.cmd.do("insertElem",n),this.createRangeByElem(n,!0))}catch(i){}},createRangeByElem:function(e,t,n){if(e.length){var i=e[0],o=document.createRange();n?o.selectNodeContents(i):o.selectNode(i),"boolean"===typeof t&&o.collapse(t),this.saveRange(o)}}},K.prototype={constructor:K,show:function(e){var t=this;if(!this._isShow){this._isShow=!0;var n=this.$bar;if(this._isRender)this._isRender=!0;else{var i=this.$textContainer;i.append(n)}Date.now()-this._time>100&&e<=1&&(n.css("width",100*e+"%"),this._time=Date.now());var o=this._timeoutId;o&&clearTimeout(o),o=setTimeout((function(){t._hide()}),500)}},_hide:function(){var e=this.$bar;e.remove(),this._time=0,this._isShow=!1,this._isRender=!1}};var q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function X(e){this.editor=e}X.prototype={constructor:X,_alert:function(e,t){var n=this.editor,i=n.config.debug,o=n.config.customAlert;if(i)throw new Error("wangEditor: "+(t||e));o&&"function"===typeof o?o(e):alert(e)},insertLinkImg:function(e){var t=this;if(e){var n=this.editor,i=n.config,o=i.linkImgCheck,a=void 0;if(o&&"function"===typeof o&&(a=o(e),"string"===typeof a))alert(a);else{n.cmd.do("insertHTML",'<img src="'+e+'" style="max-width:100%;"/>');var r=document.createElement("img");r.onload=function(){var t=i.linkImgCallback;t&&"function"===typeof t&&t(e),r=null},r.onerror=function(){r=null,t._alert("插入图片错误",'wangEditor: 插入图片出错,图片链接是 "'+e+'",下载该链接失败')},r.onabort=function(){r=null},r.src=e}}},uploadImg:function(e){var t=this;if(e&&e.length){var n=this.editor,i=n.config,o=i.uploadImgServer,a=i.uploadImgShowBase64,r=i.uploadImgMaxSize,l=r/1024/1024,s=i.uploadImgMaxLength||1e4,d=i.uploadFileName||"",u=i.uploadImgParams||{},p=i.uploadImgParamsWithUrl,f=i.uploadImgHeaders||{},h=i.uploadImgHooks||{},m=i.uploadImgTimeout||3e3,g=i.withCredentials;null==g&&(g=!1);var v=i.customUploadImg;if(v||o||a){var w=[],b=[];if(A(e,(function(e){var t=e.name,n=e.size;t&&n&&(!1!==/\.(jpg|jpeg|png|bmp|gif|webp)$/i.test(t)?r<n?b.push("【"+t+"】大于 "+l+"M"):w.push(e):b.push("【"+t+"】不是图片"))})),b.length)this._alert("图片验证未通过: \n"+b.join("\n"));else if(w.length>s)this._alert("一次最多上传"+s+"张图片");else if(v&&"function"===typeof v)v(w,this.insertLinkImg.bind(this));else{var E=new FormData;if(A(w,(function(e){var t=d||e.name;E.append(t,e)})),o&&"string"===typeof o){var y=o.split("#");o=y[0];var C=y[1]||"";c(u,(function(e,t){p&&(o.indexOf("?")>0?o+="&":o+="?",o=o+e+"="+t),E.append(e,t)})),C&&(o+="#"+C);var x=new XMLHttpRequest;if(x.open("POST",o),x.timeout=m,x.ontimeout=function(){h.timeout&&"function"===typeof h.timeout&&h.timeout(x,n),t._alert("上传图片超时")},x.upload&&(x.upload.onprogress=function(e){var t=void 0,i=new K(n);e.lengthComputable&&(t=e.loaded/e.total,i.show(t))}),x.onreadystatechange=function(){var e=void 0;if(4===x.readyState){if(x.status<200||x.status>=300)return h.error&&"function"===typeof h.error&&h.error(x,n),void t._alert("上传图片发生错误","上传图片发生错误,服务器返回状态是 "+x.status);if(e=x.responseText,"object"!==("undefined"===typeof e?"undefined":q(e)))try{e=JSON.parse(e)}catch(o){return h.fail&&"function"===typeof h.fail&&h.fail(x,n,e),void t._alert("上传图片失败","上传图片返回结果错误,返回结果是: "+e)}if(h.customInsert||"0"==e.errno){if(h.customInsert&&"function"===typeof h.customInsert)h.customInsert(t.insertLinkImg.bind(t),e,n);else{var i=e.data||[];i.forEach((function(e){t.insertLinkImg(e)}))}h.success&&"function"===typeof h.success&&h.success(x,n,e)}else h.fail&&"function"===typeof h.fail&&h.fail(x,n,e),t._alert("上传图片失败","上传图片返回结果错误,返回结果 errno="+e.errno)}},h.before&&"function"===typeof h.before){var B=h.before(x,n,w);if(B&&"object"===("undefined"===typeof B?"undefined":q(B))&&B.prevent)return void this._alert(B.msg)}return c(f,(function(e,t){x.setRequestHeader(e,t)})),x.withCredentials=g,void x.send(E)}a&&A(e,(function(e){var n=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){n.insertLinkImg(this.result)}}))}}}}};var W=1;function Z(e,t){if(null==e)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");this.id="wangEditor-"+W++,this.toolbarSelector=e,this.textSelector=t,this.customConfig={}}Z.prototype={constructor:Z,_initConfig:function(){var e={};this.config=Object.assign(e,l,this.customConfig);var t=this.config.lang||{},n=[];c(t,(function(e,t){n.push({reg:new RegExp(e,"img"),val:t})})),this.config.langArgs=n},_initDom:function(){var e=this,t=this.toolbarSelector,n=r(t),i=this.textSelector,o=this.config,a=o.zIndex,l=void 0,s=void 0,c=void 0,A=void 0;null==i?(l=r("<div></div>"),s=r("<div></div>"),A=n.children(),n.append(l).append(s),l.css("background-color","#f1f1f1").css("border","1px solid #ccc"),s.css("border","1px solid #ccc").css("border-top","none").css("height","300px")):(l=n,s=r(i),A=s.children()),c=r("<div></div>"),c.attr("contenteditable","true").css("width","100%").css("height","100%"),A&&A.length?c.append(A):c.append(r("<p><br></p>")),s.append(c),l.addClass("w-e-toolbar"),s.addClass("w-e-text-container"),s.css("z-index",a),c.addClass("w-e-text");var u=d("toolbar-elem");l.attr("id",u);var p=d("text-elem");c.attr("id",p),this.$toolbarElem=l,this.$textContainerElem=s,this.$textElem=c,this.toolbarElemId=u,this.textElemId=p;var f=!0;s.on("compositionstart",(function(){f=!1})),s.on("compositionend",(function(){f=!0})),s.on("click keyup",(function(){f&&e.change&&e.change()})),l.on("click",(function(){this.change&&this.change()})),(o.onfocus||o.onblur)&&(this.isFocus=!1,r(document).on("click",(function(t){var n=c.isContain(r(t.target)),i=l.isContain(r(t.target)),o=l[0]==t.target;if(n)e.isFocus||e.onfocus&&e.onfocus(),e.isFocus=!0;else{if(i&&!o)return;e.isFocus&&e.onblur&&e.onblur(),e.isFocus=!1}})))},_initCommand:function(){this.cmd=new O(this)},_initSelectionAPI:function(){this.selection=new V(this)},_initUploadImg:function(){this.uploadImg=new X(this)},_initMenus:function(){this.menus=new H(this),this.menus.init()},_initText:function(){this.txt=new J(this),this.txt.init()},initSelection:function(e){var t=this.$textElem,n=t.children();if(!n.length)return t.append(r("<p><br></p>")),void this.initSelection();var i=n.last();if(e){var o=i.html().toLowerCase(),a=i.getNodeName();if("<br>"!==o&&"<br/>"!==o||"P"!==a)return t.append(r("<p><br></p>")),void this.initSelection()}this.selection.createRangeByElem(i,!1,!0),this.selection.restoreSelection()},_bindEvent:function(){var e=0,t=this.txt.html(),n=this.config,i=n.onchangeTimeout;i=parseInt(i,10),(!i||i<=0)&&(i=200);var o=n.onchange;o&&"function"===typeof o&&(this.change=function(){var n=this.txt.html();n.length===t.length&&n===t||(e&&clearTimeout(e),e=setTimeout((function(){o(n),t=n}),i))});var a=n.onblur;a&&"function"===typeof a&&(this.onblur=function(){var e=this.txt.html();a(e)});var r=n.onfocus;r&&"function"===typeof r&&(this.onfocus=function(){r()})},create:function(){this._initConfig(),this._initDom(),this._initCommand(),this._initSelectionAPI(),this._initText(),this._initMenus(),this._initUploadImg(),this.initSelection(!0),this._bindEvent()},_offAllEvent:function(){r.offAll()}};try{document}catch(ie){throw new Error("请在浏览器环境下运行")}e();var ee='.w-e-toolbar,.w-e-text-container,.w-e-menu-panel { padding: 0; margin: 0; box-sizing: border-box;}.w-e-toolbar *,.w-e-text-container *,.w-e-menu-panel * { padding: 0; margin: 0; box-sizing: border-box;}.w-e-clear-fix:after { content: ""; display: table; clear: both;}.w-e-toolbar .w-e-droplist { position: absolute; left: 0; top: 0; background-color: #fff; border: 1px solid #f1f1f1; border-right-color: #ccc; border-bottom-color: #ccc;}.w-e-toolbar .w-e-droplist .w-e-dp-title { text-align: center; color: #999; line-height: 2; border-bottom: 1px solid #f1f1f1; font-size: 13px;}.w-e-toolbar .w-e-droplist ul.w-e-list { list-style: none; line-height: 1;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { color: #333; padding: 5px 0;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { background-color: #f1f1f1;}.w-e-toolbar .w-e-droplist ul.w-e-block { list-style: none; text-align: left; padding: 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { display: inline-block; *display: inline; *zoom: 1; padding: 3px 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { background-color: #f1f1f1;}@font-face { font-family: \'w-e-icon\'; src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABhQAAsAAAAAGAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPBGNtYXAAAAFoAAABBAAAAQQrSf4BZ2FzcAAAAmwAAAAIAAAACAAAABBnbHlmAAACdAAAEvAAABLwfpUWUWhlYWQAABVkAAAANgAAADYQp00kaGhlYQAAFZwAAAAkAAAAJAfEA+FobXR4AAAVwAAAAIQAAACEeAcD7GxvY2EAABZEAAAARAAAAERBSEX+bWF4cAAAFogAAAAgAAAAIAAsALZuYW1lAAAWqAAAAYYAAAGGmUoJ+3Bvc3QAABgwAAAAIAAAACAAAwAAAAMD3gGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAOgAAAA2ACAABAAWAAEAIOkG6Q3pEulH6Wbpd+m56bvpxunL6d/qDepc6l/qZepo6nHqefAN8BTxIPHc8fz//f//AAAAAAAg6QbpDekS6UfpZel36bnpu+nG6cvp3+oN6lzqX+pi6mjqcep38A3wFPEg8dzx/P/9//8AAf/jFv4W+Bb0FsAWoxaTFlIWURZHFkMWMBYDFbUVsxWxFa8VpxWiEA8QCQ7+DkMOJAADAAEAAAAAAAAAAAAAAAAA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Lzo6RAMPDgsLCgoWJRsaEREKCwQEAgABAAAAAAAA9evv618PPPUACwQAAAAAANbEBFgAAAAA1sQEWAAA/7cEAQPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAD//wQBAAEAAAAAAAAAAAAAAAAAAAAhBAAAAAAAAAAAAAAAAgAAAAQAAAAEAAAABAAAAAQAAMAEAAAABAAAAAQAAAAEAABABAAAAAQAAAAEAAAeBAAAAAQAAAAEAABlBAAAAAQAAMAEAADABAAAgAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBMAJQA+AE2AXwBwgI2AnQCvgLoA34EHgSIBMoE8gU0BXAFiAXgBiIGagaSBroG5AcoB+AIKgkcCXgAAQAAACEAtAAKAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format(\'truetype\'); font-weight: normal; font-style: normal;}[class^="w-e-icon-"],[class*=" w-e-icon-"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: \'w-e-icon\' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.w-e-icon-close:before { content: "\\f00d";}.w-e-icon-upload2:before { content: "\\e9c6";}.w-e-icon-trash-o:before { content: "\\f014";}.w-e-icon-header:before { content: "\\f1dc";}.w-e-icon-pencil2:before { content: "\\e906";}.w-e-icon-paint-brush:before { content: "\\f1fc";}.w-e-icon-image:before { content: "\\e90d";}.w-e-icon-play:before { content: "\\e912";}.w-e-icon-location:before { content: "\\e947";}.w-e-icon-undo:before { content: "\\e965";}.w-e-icon-redo:before { content: "\\e966";}.w-e-icon-quotes-left:before { content: "\\e977";}.w-e-icon-list-numbered:before { content: "\\e9b9";}.w-e-icon-list2:before { content: "\\e9bb";}.w-e-icon-link:before { content: "\\e9cb";}.w-e-icon-happy:before { content: "\\e9df";}.w-e-icon-bold:before { content: "\\ea62";}.w-e-icon-underline:before { content: "\\ea63";}.w-e-icon-italic:before { content: "\\ea64";}.w-e-icon-strikethrough:before { content: "\\ea65";}.w-e-icon-table2:before { content: "\\ea71";}.w-e-icon-paragraph-left:before { content: "\\ea77";}.w-e-icon-paragraph-center:before { content: "\\ea78";}.w-e-icon-paragraph-right:before { content: "\\ea79";}.w-e-icon-terminal:before { content: "\\f120";}.w-e-icon-page-break:before { content: "\\ea68";}.w-e-icon-cancel-circle:before { content: "\\ea0d";}.w-e-icon-font:before { content: "\\ea5c";}.w-e-icon-text-heigh:before { content: "\\ea5f";}.w-e-toolbar { display: -webkit-box; display: -ms-flexbox; display: flex; padding: 0 5px; /* flex-wrap: wrap; */ /* 单个菜单 */}.w-e-toolbar .w-e-menu { position: relative; text-align: center; padding: 5px 10px; cursor: pointer;}.w-e-toolbar .w-e-menu i { color: #999;}.w-e-toolbar .w-e-menu:hover i { color: #333;}.w-e-toolbar .w-e-active i { color: #1e88e5;}.w-e-toolbar .w-e-active:hover i { color: #1e88e5;}.w-e-text-container .w-e-panel-container { position: absolute; top: 0; left: 50%; border: 1px solid #ccc; border-top: 0; box-shadow: 1px 1px 2px #ccc; color: #333; background-color: #fff; /* 为 emotion panel 定制的样式 */ /* 上传图片的 panel 定制样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-close { position: absolute; right: 0; top: 0; padding: 5px; margin: 2px 5px 0 0; cursor: pointer; color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-close:hover { color: #333;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title { list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; margin: 2px 10px 0 10px; border-bottom: 1px solid #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item { padding: 3px 5px; color: #999; cursor: pointer; margin: 0 3px; position: relative; top: 1px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active { color: #333; border-bottom: 1px solid #333; cursor: default; font-weight: 700;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content { padding: 10px 15px 10px 15px; font-size: 16px; /* 输入框的样式 */ /* 按钮的样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus { outline: none;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea { width: 100%; border: 1px solid #ccc; padding: 5px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus { border-color: #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] { border: none; border-bottom: 1px solid #ccc; font-size: 14px; height: 20px; color: #333; text-align: left;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small { width: 30px; text-align: center;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block { display: block; width: 100%; margin: 10px 0;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { border-bottom: 2px solid #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { font-size: 14px; color: #1e88e5; border: none; padding: 5px 10px; background-color: #fff; cursor: pointer; border-radius: 3px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { float: left; margin-right: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { float: right; margin-left: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { color: #c24f4a;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { background-color: #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { content: ""; display: table; clear: both;}.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item { cursor: pointer; font-size: 18px; padding: 0 3px; display: inline-block; *display: inline; *zoom: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container { text-align: center;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn { display: inline-block; *display: inline; *zoom: 1; color: #999; cursor: pointer; font-size: 60px; line-height: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover { color: #333;}.w-e-text-container { position: relative;}.w-e-text-container .w-e-progress { position: absolute; background-color: #1e88e5; bottom: 0; left: 0; height: 1px;}.w-e-text { padding: 0 10px; overflow-y: scroll;}.w-e-text p,.w-e-text h1,.w-e-text h2,.w-e-text h3,.w-e-text h4,.w-e-text h5,.w-e-text table,.w-e-text pre { margin: 10px 0; line-height: 1.5;}.w-e-text ul,.w-e-text ol { margin: 10px 0 10px 20px;}.w-e-text blockquote { display: block; border-left: 8px solid #d0e5f2; padding: 5px 10px; margin: 10px 0; line-height: 1.4; font-size: 100%; background-color: #f1f1f1;}.w-e-text code { display: inline-block; *display: inline; *zoom: 1; background-color: #f1f1f1; border-radius: 3px; padding: 3px 5px; margin: 0 3px;}.w-e-text pre code { display: block;}.w-e-text table { border-top: 1px solid #ccc; border-left: 1px solid #ccc;}.w-e-text table td,.w-e-text table th { border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; padding: 3px 5px;}.w-e-text table th { border-bottom: 2px solid #ccc; text-align: center;}.w-e-text:focus { outline: none;}.w-e-text img { cursor: pointer;}.w-e-text img:hover { box-shadow: 0 0 5px #333;}',te=document.createElement("style");te.type="text/css",te.innerHTML=ee,document.getElementsByTagName("HEAD").item(0).appendChild(te);var ne=window.wangEditor||Z;return ne}))},7173:function(e,t,n){"use strict";n("c624")},"75e1":function(e,t,n){"use strict";n("36e0")},c624:function(e,t,n){}}]);
  2. //# sourceMappingURL=chunk-0a1452f6.d3e18c86.js.map