(window.webpackJsonp=window.webpackJsonp||[]).push([[127],{1129:function(t,o,e){t.exports={}},2474:function(t,o,e){"use strict";e(1129)},2742:function(t,o,e){"use strict";e.r(o);e(2468),e(2469),e(2470);var n=e(837),r=e.n(n),l=(e(2471),{name:"RichTextEditor",components:{quillEditor:e(2472).quillEditor},data:function(){return{showCode:!1,content:'<h2 class="ql-align-center"><span class="ql-font-serif">Text content loading..</span></h2>',editorOption:{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]],syntax:{highlight:function(text){return r.a.highlightAuto(text).value}}}}}},computed:{editor:function(){return this.$refs.myTextEditor.quill},contentCode:function(){return r.a.highlightAuto(this.content).value}},mounted:function(){this.content="<h2>MikuTools - 一个轻量的工具集合</h2>"},methods:{}}),c=(e(2474),e(2)),d=function(t){t.exports.head={meta:[{hid:"keywords",keywords:"富文本编辑器,MikuTools,Ice-Hazymoon,在线工具"},{hid:"description",description:"在线富文本编辑器"}],title:"富文本编辑器 - MikuTools"},t.options.toolsMeta={name:"富文本编辑器",path:"/rich_text_editor",head:{meta:[{hid:"keywords",keywords:"富文本编辑器,MikuTools,Ice-Hazymoon,在线工具"},{hid:"description",description:"在线富文本编辑器"}],title:"富文本编辑器 - MikuTools"},show:!0,key:"text"}},component=Object(c.a)(l,(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"rich_text_editor"},[e("nya-container",{attrs:{title:"富文本编辑器"}},[e("quill-editor",{ref:"myTextEditor",attrs:{options:t.editorOption},model:{value:t.content,callback:function(o){t.content=o},expression:"content"}}),e("el-button",{staticClass:"mt-15",attrs:{type:"primary"},on:{click:function(o){t.showCode=!t.showCode}}},[t._v("\n            "+t._s(t.showCode?"隐藏":"显示")+" HTML 代码\n        ")])],1),t.showCode?e("nya-container",{attrs:{title:"HTML"}},[e("nya-copy",{attrs:{copy:t.contentCode}},[e("div",{domProps:{innerHTML:t._s(t.contentCode)}})])],1):t._e()],1)}),[],!1,null,null,null);"function"==typeof d&&d(component);o.default=component.exports}}]);