1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/86e0edcf1023466452b60fa94f8...

1 line
19 KiB
JSON
Raw Normal View History

2023-12-18 13:12:25 +08:00
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\Tinymce\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\Tinymce\\index.vue","mtime":1622443089431},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/**\n * docs:\n * https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html#tinymce\n */\nimport editorImage from \"./components/EditorImage\";\nimport plugins from \"./plugins\";\nimport toolbar from \"./toolbar\";\nimport load from \"./dynamicLoadScript\"; // why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one\n\nvar tinymceCDN = 'https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js';\nexport default {\n name: 'Tinymce',\n components: {\n editorImage: editorImage\n },\n props: {\n id: {\n type: String,\n default: function _default() {\n return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '');\n }\n },\n value: {\n type: String,\n default: ''\n },\n toolbar: {\n type: Array,\n required: false,\n default: function _default() {\n return [];\n }\n },\n menubar: {\n type: String,\n default: 'file edit insert view format table'\n },\n height: {\n type: [Number, String],\n required: false,\n default: 360\n },\n width: {\n type: [Number, String],\n required: false,\n default: 'auto'\n }\n },\n data: function data() {\n return {\n hasChange: false,\n hasInit: false,\n tinymceId: this.id,\n fullscreen: false,\n languageTypeList: {\n 'en': 'en',\n 'zh': 'zh_CN',\n 'es': 'es_MX',\n 'ja': 'ja'\n }\n };\n },\n computed: {\n containerWidth: function containerWidth() {\n var width = this.width;\n\n if (/^[\\d]+(\\.[\\d]+)?$/.test(width)) {\n // matches `100`, `'100'`\n return \"\".concat(width, \"px\");\n }\n\n return width;\n }\n },\n watch: {\n value: function value(val) {\n var _this2 = this;\n\n if (!this.hasChange && this.hasInit) {\n this.$nextTick(function () {\n return window.tinymce.get(_this2.tinymceId).setContent(val || '');\n });\n }\n }\n },\n mounted: function mounted() {\n this.init();\n },\n activated: function activated() {\n if (window.tinymce) {\n this.initTinymce();\n }\n },\n deactivated: function deactivated() {\n this.destroyTinymce();\n },\n destroyed: function destroyed() {\n this.destroyTinymce();\n },\n methods: {\n init: function init() {\n var _this3 = this;\n\n // dynamic load tinymce from cdn\n load(tinymceCDN, function (err) {\n if (err) {\n _this3.$message.error(err.message);\n\n return;\n }\n\n _this3.initTinymce();\n });\n },\n initTinymce: function initTinymce() {\n var _this4 = this;\n\n var _this = this;\n\n window.tinymce.init({\n