1 |
- {"version":3,"sources":["webpack:///./src/views/app-rich-text.vue","webpack:///src/views/app-rich-text.vue","webpack:///./src/views/app-rich-text.vue?f9d2","webpack:///./src/views/app-rich-text.vue?3023","webpack:///./src/views/app-rich-text.vue?c149"],"names":["render","_vm","this","_c","_self","staticClass","attrs","model","value","content","callback","$$v","expression","staticRenderFns","window","components","MyWangediter","data","watch","mounted","RE","methods","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,gBAAgB,CAACG,MAAM,CAAC,SAAU,EAAK,YAAc,aAAaC,MAAM,CAACC,MAAOP,EAAIQ,QAASC,SAAS,SAAUC,GAAMV,EAAIQ,QAAQE,GAAKC,WAAW,cAAc,IAEjQC,EAAkB,G,wBCMtBC,aAEA,OACAC,YAAAC,qBACAC,gBACA,OACAR,aAGAS,OACAT,mBAAA,gEACA,8DACAA,MAEAK,qDAGAK,mBAAA,WACAL,8BACA,mBACAA,oDAEAA,8BACAM,gEAEAN,6BACA,gBAIA,OAHA,8DACAL,MAEA,GAEAK,6BACA,kEAGAO,YC5CuV,I,wBCQnVC,EAAY,eACd,EACAtB,EACAa,GACA,EACA,KACA,WACA,MAIa,aAAAS,E,2CCnBf","file":"js/chunk-2d01af26.d4ff3aa6.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('my-wangediter',{attrs:{\"is100vh\":true,\"placeholder\":\"输入问题的描述..\"},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:\"content\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- app富文本编辑 -->\r\n<template>\r\n\t<div class=\"wrap\">\r\n <my-wangediter :is100vh=\"true\" v-model=\"content\" placeholder=\"输入问题的描述..\"/>\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\n window.RE = {};\r\n import MyWangediter from \"@/components/my-wangediter\";\r\n export default {\r\n components: {MyWangediter},\r\n data() {\r\n\t\t\treturn {\r\n content: '',\r\n\t\t\t};\r\n\t\t},\r\n watch: {\r\n content(content = '') {\r\n if (content.replace(/<[^<>]+>/g, '').replace(/ /gi, '').length === 0) {\r\n content = '';\r\n }\r\n window.location.href = \"re-callback://\" + encodeURI(content);\r\n },\r\n },\r\n mounted() {\r\n window.RE.callback = function () {\r\n const html = RE.getHtml();\r\n window.location.href = \"re-callback://\" + encodeURI(html);\r\n }\r\n window.RE.setHtml = (contents) => {\r\n RE.editor.innerHTML = decodeURIComponent(contents.replace(/\\+/g, '%20'));\r\n }\r\n window.RE.getHtml = () => {\r\n let content = this.content;\r\n if (content.replace(/<[^<>]+>/g, '').replace(/ /gi, '').length === 0) {\r\n content = '';\r\n }\r\n return content;\r\n }\r\n window.RE.getText = () => {\r\n return this.content.replace(/<[^<>]+>/g, '').replace(/ /gi, '');\r\n }\r\n },\r\n methods: {\r\n\r\n }\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n .wrap >>> .w-e-bar-item-menus-container .title {\r\n display: none;\r\n }\r\n\r\n\t.wrap {\r\n\t\twidth: 100%;\r\n height: 100vh;\r\n\t}\r\n\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./app-rich-text.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./app-rich-text.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./app-rich-text.vue?vue&type=template&id=72f81784&scoped=true&\"\nimport script from \"./app-rich-text.vue?vue&type=script&lang=js&\"\nexport * from \"./app-rich-text.vue?vue&type=script&lang=js&\"\nimport style0 from \"./app-rich-text.vue?vue&type=style&index=0&id=72f81784&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"72f81784\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./app-rich-text.vue?vue&type=style&index=0&id=72f81784&prod&scoped=true&lang=css&\""],"sourceRoot":""}
|