detection-user/unpackage/dist/build/mp-weixin/components/Rboy-editor/Rboy-editor.js

11 lines
2.7 KiB
JavaScript
Raw Normal View History

2024-09-18 18:50:21 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/Rboy-editor/Rboy-editor"],{"039a":function(t,e,n){},"10b7":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7eb4")),r=o(n("ee10")),c={name:"Rboy-editor",props:{count:{type:Number,default:6},newsContent:{type:String,default:""}},data:function(){return{editorCtx:"",placeholder:"请输入内容"}},created:function(){},mounted:function(){var e=this;t.createSelectorQuery().in(this).select("#editor").context((function(t){console.log(t),e.editorCtx=t.context})).exec(),console.log("111")},onShow:function(){},methods:{editor_getcontents:function(){var t=this;return new Promise((function(e,n){t.editorCtx.getContents({success:function(t){e(t.html)}})}))},editor_setContents:function(){console.log(this.newsContent),this.editorCtx&&this.editorCtx.setContents({html:this.newsContent})},editor_setContentsNew:function(e){t.createSelectorQuery().in(this).select("#editor").context((function(t){t.context.setContents({html:e})})).exec()},editor_format_btn:function(t,e){this.editorCtx.format(t,e)},editor_insertImage:function(t){if(!t)return!1;this.editorCtx.insertImage(t)},editor_img_btn:function(){var e=this;t.chooseImage({count:this.count||6,type:"image",success:function(){var t=(0,r.default)(i.default.mark((function t(n){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$emit("uploadFile",n);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})}}};e.default=c}).call(this,n("df3c")["default"])},"610e":function(t,e,n){"use strict";var o=n("039a"),i=n.n(o);i.a},"7dc3":function(t,e,n){"use strict";n.r(e);var o=n("10b7"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"7f9d":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},i=[]},"8a66":function(t,e,n){"use strict";n.r(e);var o=n("7f9d"),i=n("7dc3");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("610e");var c=n("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"df4983f6",null,!1,o["a"],void 0);e["default"]=u.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/Rboy-editor/Rboy-editor-create-component',
{
'components/Rboy-editor/Rboy-editor-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("8a66"))
})
},
[['components/Rboy-editor/Rboy-editor-create-component']]
]);