├── src
├── assets
│ └── logo.png
├── index.js
└── components
│ └── KindEditor.vue
├── .babelrc
├── .gitignore
├── .editorconfig
├── index.html
├── package.json
├── webpack.config.js
├── README.md
└── dist
├── vue-kindeditor.js
└── vue-kindeditor.js.map
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/calamus0427/vue-kindeditor/master/src/assets/logo.png
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", { "modules": false }],
4 | "stage-3"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | npm-debug.log
4 | yarn-error.log
5 |
6 | # Editor directories and files
7 | .idea
8 | *.suo
9 | *.ntvs*
10 | *.njsproj
11 | *.sln
12 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import KindEditor from './components/KindEditor.vue'
2 |
3 |
4 | const VueKindEditor = {
5 | install(Vue, options) {
6 | Vue.component('editor', KindEditor)
7 | }
8 | };
9 |
10 | export default VueKindEditor;
11 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | vue-kindeditor
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-kindeditor",
3 | "description": "vue kindeditor plugin",
4 | "version": "0.4.5",
5 | "author": "FF ",
6 | "license": "MIT",
7 | "main": "dist/vue-kindeditor.js",
8 | "repository": {
9 | "type": "git",
10 | "url": "https://github.com/ff755/vue-kindeditor"
11 | },
12 | "scripts": {
13 | "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
14 | },
15 | "dependencies": {
16 | "vue": "^2.5.11",
17 | "kindeditor": "^4.1.10"
18 | },
19 | "browserslist": [
20 | "> 1%",
21 | "last 2 versions",
22 | "not ie <= 8"
23 | ],
24 | "devDependencies": {
25 | "babel-core": "^6.26.0",
26 | "babel-loader": "^7.1.2",
27 | "babel-preset-env": "^1.6.0",
28 | "babel-preset-stage-3": "^6.24.1",
29 | "cross-env": "^5.0.5",
30 | "css-loader": "^0.28.7",
31 | "file-loader": "^1.1.4",
32 | "vue-loader": "^13.0.5",
33 | "vue-template-compiler": "^2.4.4",
34 | "webpack": "^3.6.0",
35 | "webpack-dev-server": "^2.9.1"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var webpack = require('webpack')
3 |
4 | module.exports = {
5 | entry: './src/index.js',
6 | output: {
7 | path: path.resolve(__dirname, './dist'),
8 | publicPath: '/dist/',
9 | filename: 'vue-kindeditor.js', //打包生成文件的名字
10 | library:'VueKindEditor', //reqire引入的名字
11 | libraryTarget:'umd',
12 | umdNamedDefine:true
13 | },
14 | module: {
15 | rules: [
16 | {
17 | test: /\.css$/,
18 | use: [
19 | 'vue-style-loader',
20 | 'css-loader'
21 | ],
22 | }, {
23 | test: /\.vue$/,
24 | loader: 'vue-loader',
25 | options: {
26 | loaders: {
27 | }
28 | // other vue-loader options go here
29 | }
30 | },
31 | {
32 | test: /\.js$/,
33 | loader: 'babel-loader',
34 | exclude: /node_modules/
35 | },
36 | {
37 | test: /\.(png|jpg|gif|svg)$/,
38 | loader: 'file-loader',
39 | options: {
40 | name: '[name].[ext]?[hash]'
41 | }
42 | }
43 | ]
44 | },
45 | resolve: {
46 | alias: {
47 | 'vue$': 'vue/dist/vue.esm.js'
48 | },
49 | extensions: ['*', '.js', '.vue', '.json']
50 | },
51 | devServer: {
52 | historyApiFallback: true,
53 | noInfo: true,
54 | overlay: true
55 | },
56 | performance: {
57 | hints: false
58 | },
59 | devtool: '#eval-source-map'
60 | }
61 |
62 | if (process.env.NODE_ENV === 'production') {
63 | module.exports.devtool = '#source-map'
64 | // http://vue-loader.vuejs.org/en/workflow/production.html
65 | module.exports.plugins = (module.exports.plugins || []).concat([
66 | new webpack.DefinePlugin({
67 | 'process.env': {
68 | NODE_ENV: '"production"'
69 | }
70 | }),
71 | new webpack.optimize.UglifyJsPlugin({
72 | sourceMap: true,
73 | compress: {
74 | warnings: false
75 | }
76 | }),
77 | new webpack.LoaderOptionsPlugin({
78 | minimize: true
79 | })
80 | ])
81 | }
82 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-kindeditor
2 |
3 | 依赖
4 | vue 2
5 | kindeditor 4
6 |
7 | 1. [License](#License)
8 |
9 | 2. [安装](#安装)
10 |
11 | 3. [使用](#使用)
12 |
13 | 4. [初始化参数](#初始化参数)
14 |
15 | 5. [演示](#演示)
16 |
17 | 6. [最近更新](#最近更新)
18 |
19 | 7. [常见问题](#常见问题)
20 |
21 | ## License
22 |
23 | MIT License
24 |
25 | ## 安装
26 |
27 | ```bash
28 | yarn add vue-kindeditor
29 | ```
30 |
31 | ## 使用
32 |
33 | ```js
34 | import Vue from 'vue'
35 | import App from './App'
36 | import router from './router'
37 | import VueKindEditor from 'vue-kindeditor'
38 | import 'kindeditor/kindeditor-all-min.js'
39 | import 'kindeditor/themes/default/default.css'
40 |
41 | Vue.config.productionTip = false
42 | /* eslint-disable no-new */
43 | Vue.use(VueKindEditor)
44 |
45 | /* eslint-disable no-new */
46 | new Vue({
47 | el: '#app',
48 | router,
49 | template: '',
50 | components: { App }
51 | })
52 | ```
53 |
54 |
55 | ```js
56 |
57 |
58 |
vue-kindedtior demo
59 |
64 |
65 |
70 |
71 |
72 |
73 |
97 |
98 |
103 | ```
104 |
105 | ## 初始化参数
106 | [编辑器初始化参数](http://kindeditor.net/docs/option.html)
107 |
108 | ## 演示
109 | [我是demo](https://github.com/ff755/vue-kindedtior-demo)
110 |
111 | ## 最近更新
112 | 重新打包。
113 |
114 | ## 常见问题
115 | [常见问题](https://github.com/ff755/vue-kindeditor/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
--------------------------------------------------------------------------------
/dist/vue-kindeditor.js:
--------------------------------------------------------------------------------
1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VueKindEditor",[],t):"object"==typeof exports?exports.VueKindEditor=t():e.VueKindEditor=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(a[o])return a[o].exports;var n=a[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,o){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=1)}([function(e,t,a){"use strict";t.a={name:"kindeditor-component",data:function(){return{editor:null,outContent:this.content}},props:{content:{type:String,default:""},id:{type:String,required:!0},width:{type:String},height:{type:String},minWidth:{type:Number,default:650},minHeight:{type:Number,default:100},items:{type:Array,default:function(){return["source","|","undo","redo","|","preview","print","template","code","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","clearhtml","quickformat","selectall","|","fullscreen","/","formatblock","fontname","fontsize","|","forecolor","hilitecolor","bold","italic","underline","strikethrough","lineheight","removeformat","|","image","multiimage","flash","media","insertfile","table","hr","emoticons","baidumap","pagebreak","anchor","link","unlink","|","about"]}},noDisableItems:{type:Array,default:function(){return["source","fullscreen"]}},filterMode:{type:Boolean,default:!0},htmlTags:{type:Object,default:function(){return{font:["color","size","face",".background-color"],span:["style"],div:["class","align","style"],table:["class","border","cellspacing","cellpadding","width","height","align","style"],"td,th":["class","align","valign","width","height","colspan","rowspan","bgcolor","style"],a:["class","href","target","name","style"],embed:["src","width","height","type","loop","autostart","quality","style","align","allowscriptaccess","/"],img:["src","width","height","border","alt","title","align","style","/"],hr:["class","/"],br:["/"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["align","style"],"tbody,tr,strong,b,sub,sup,em,i,u,strike":[]}}},wellFormatMode:{type:Boolean,default:!0},resizeType:{type:Number,default:2},themeType:{type:String,default:"default"},langType:{type:String,default:"zh-CN"},designMode:{type:Boolean,default:!0},fullscreenMode:{type:Boolean,default:!1},basePath:{type:String},themesPath:{type:String},pluginsPath:{type:String,default:""},langPath:{type:String},minChangeSize:{type:Number,default:5},loadStyleMode:{type:Boolean,default:!0},urlType:{type:String,default:""},newlineTag:{type:String,default:"p"},pasteType:{type:Number,default:2},dialogAlignType:{type:String,default:"page"},shadowMode:{type:Boolean,default:!0},zIndex:{type:Number,default:811213},useContextmenu:{type:Boolean,default:!0},syncType:{type:String,default:"form"},indentChar:{type:String,default:"\t"},cssPath:{type:[String,Array]},cssData:{type:String},bodyClass:{type:String,default:"ke-content"},colorTable:{type:Array},afterCreate:{type:Function},afterChange:{type:Function},afterTab:{type:Function},afterFocus:{type:Function},afterBlur:{type:Function},afterUpload:{type:Function},uploadJson:{type:String},fileManagerJson:{type:String},allowPreviewEmoticons:{type:Boolean,default:!0},allowImageUpload:{type:Boolean,default:!0},allowFlashUpload:{type:Boolean,default:!0},allowMediaUpload:{type:Boolean,default:!0},allowFileUpload:{type:Boolean,default:!0},allowFileManager:{type:Boolean,default:!1},fontSizeTable:{type:Array,default:function(){return["9px","10px","12px","14px","16px","18px","24px","32px"]}},imageTabIndex:{type:Number,default:0},formatUploadUrl:{type:Boolean,default:!0},fullscreenShortcut:{type:Boolean,default:!1},extraFileUploadParams:{type:Object,default:function(){return{}}},filePostName:{type:String,default:"imgFile"},fillDescAfterUploadImage:{type:Boolean,default:!1},afterSelectFile:{type:Function},pagebreakHtml:{type:String,default:'
'},allowImageRemote:{type:Boolean,default:!0},autoHeightMode:{type:Boolean,default:!1},fixToolBar:{type:Boolean,default:!1},tabIndex:{type:Number}},watch:{content:function(e){this.editor&&e!==this.outContent&&this.editor.html(e)},outContent:function(e){this.$emit("update:content",e),this.$emit("on-content-change",e)}},mounted:function(){this.initEditor()},activated:function(){this.initEditor()},deactivated:function(){this.removeEditor()},methods:{removeEditor:function(){window.KindEditor.remove("#"+this.id)},initEditor:function(){var e=this;e.removeEditor(),e.editor=window.KindEditor.create("#"+this.id,{width:e.width,height:e.height,minWidth:e.minWidth,minHeight:e.minHeight,items:e.items,noDisableItems:e.noDisableItems,filterMode:e.filterMode,htmlTags:e.htmlTags,wellFormatMode:e.wellFormatMode,resizeType:e.resizeType,themeType:e.themeType,langType:e.langType,designMode:e.designMode,fullscreenMode:e.fullscreenMode,basePath:e.basePath,themesPath:e.themesPath,pluginsPath:e.pluginsPath,langPath:e.langPath,minChangeSize:e.minChangeSize,loadStyleMode:e.loadStyleMode,urlType:e.urlType,newlineTag:e.newlineTag,pasteType:e.pasteType,dialogAlignType:e.dialogAlignType,shadowMode:e.shadowMode,zIndex:e.zIndex,useContextmenu:e.useContextmenu,syncType:e.syncType,indentChar:e.indentChar,cssPath:e.cssPath,cssData:e.cssData,bodyClass:e.bodyClass,colorTable:e.colorTable,afterCreate:e.afterCreate,afterChange:function(){e.outContent=this.html()},afterTab:e.afterTab,afterFocus:e.afterFocus,afterBlur:e.afterBlur,afterUpload:e.afterUpload,uploadJson:e.uploadJson,fileManagerJson:e.fileManagerJson,allowPreviewEmoticons:e.allowPreviewEmoticons,allowImageUpload:e.allowImageUpload,allowFlashUpload:e.allowFlashUpload,allowMediaUpload:e.allowMediaUpload,allowFileUpload:e.allowFileUpload,allowFileManager:e.allowFileManager,fontSizeTable:e.fontSizeTable,imageTabIndex:e.imageTabIndex,formatUploadUrl:e.formatUploadUrl,fullscreenShortcut:e.fullscreenShortcut,extraFileUploadParams:e.extraFileUploadParams,filePostName:e.filePostName,fillDescAfterUploadImage:e.fillDescAfterUploadImage,afterSelectFile:e.afterSelectFile,pagebreakHtml:e.pagebreakHtml,allowImageRemote:e.allowImageRemote,autoHeightMode:e.autoHeightMode,fixToolBar:e.fixToolBar,tabIndex:e.tabIndex})}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(2),n={install:function(e,t){e.component("editor",o.a)}};t.default=n},function(e,t,a){"use strict";var o=a(0),n=a(4),l=a(3),i=l(o.a,n.a,!1,null,null,null);t.a=i.exports},function(e,t){e.exports=function(e,t,a,o,n,l){var i,r=e=e||{},d=typeof e.default;"object"!==d&&"function"!==d||(i=e,r=e.default);var s="function"==typeof r?r.options:r;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),a&&(s.functional=!0),n&&(s._scopeId=n);var u;if(l?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},s._ssrRegister=u):o&&(u=o),u){var p=s.functional,f=p?s.render:s.beforeCreate;p?(s._injectStyles=u,s.render=function(e,t){return u.call(t),f(e,t)}):s.beforeCreate=f?[].concat(f,u):[u]}return{esModule:i,exports:r,options:s}}},function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"kindeditor-component"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.outContent,expression:"outContent"}],attrs:{id:e.id,name:"content"},domProps:{value:e.outContent},on:{input:function(t){t.target.composing||(e.outContent=t.target.value)}}})])},n=[],l={render:o,staticRenderFns:n};t.a=l}])});
2 | //# sourceMappingURL=vue-kindeditor.js.map
--------------------------------------------------------------------------------
/src/components/KindEditor.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/dist/vue-kindeditor.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///vue-kindeditor.js","webpack:///webpack/bootstrap 7e757e900274dbb60235","webpack:///src/components/KindEditor.vue","webpack:///./src/index.js","webpack:///./src/components/KindEditor.vue","webpack:///./node_modules/vue-loader/lib/component-normalizer.js","webpack:///./src/components/KindEditor.vue?6973"],"names":["root","factory","exports","module","define","amd","self","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","__webpack_exports__","data","editor","outContent","content","props","type","String","default","id","required","width","height","minWidth","Number","minHeight","items","Array","noDisableItems","filterMode","Boolean","htmlTags","font","span","div","table","td,th","a","embed","img","hr","br","p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6","tbody,tr,strong,b,sub,sup,em,i,u,strike","wellFormatMode","resizeType","themeType","langType","designMode","fullscreenMode","basePath","themesPath","pluginsPath","langPath","minChangeSize","loadStyleMode","urlType","newlineTag","pasteType","dialogAlignType","shadowMode","zIndex","useContextmenu","syncType","indentChar","cssPath","cssData","bodyClass","colorTable","afterCreate","Function","afterChange","afterTab","afterFocus","afterBlur","afterUpload","uploadJson","fileManagerJson","allowPreviewEmoticons","allowImageUpload","allowFlashUpload","allowMediaUpload","allowFileUpload","allowFileManager","fontSizeTable","imageTabIndex","formatUploadUrl","fullscreenShortcut","extraFileUploadParams","filePostName","fillDescAfterUploadImage","afterSelectFile","pagebreakHtml","allowImageRemote","autoHeightMode","fixToolBar","tabIndex","watch","val","html","$emit","mounted","initEditor","activated","deactivated","removeEditor","methods","window","KindEditor","remove","_this","create","value","__WEBPACK_IMPORTED_MODULE_0__components_KindEditor_vue__","VueKindEditor","install","Vue","options","component","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_KindEditor_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_aeb9218e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_KindEditor_vue__","normalizeComponent","Component","rawScriptExports","compiledTemplate","functionalTemplate","injectStyles","scopeId","moduleIdentifier","esModule","scriptExports","render","staticRenderFns","_compiled","functional","_scopeId","hook","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","existing","beforeCreate","_injectStyles","h","concat","_vm","_h","$createElement","_c","_self","staticClass","directives","rawName","expression","attrs","domProps","on","input","$event","target","composing","esExports"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,OAAA,mBAAAH,GACA,gBAAAC,SACAA,QAAA,cAAAD,IAEAD,EAAA,cAAAC,KACC,mBAAAK,WAAAC,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAR,OAGA,IAAAC,GAAAQ,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAX,WAUA,OANAM,GAAAE,GAAAI,KAAAX,EAAAD,QAAAC,IAAAD,QAAAO,GAGAN,EAAAU,GAAA,EAGAV,EAAAD,QAvBA,GAAAS,KA4DA,OAhCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,SAAAf,EAAAgB,EAAAC,GACAV,EAAAW,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAV,EAAAiB,EAAA,SAAAvB,GACA,GAAAgB,GAAAhB,KAAAwB,WACA,WAA2B,MAAAxB,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAM,GAAAQ,EAAAE,EAAA,IAAAA,GACAA,GAIAV,EAAAW,EAAA,SAAAQ,EAA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,EAAAC,OAAApD,cACvYoB,KACAkC,GAAiBnC,SAAAC,kBACF1H,GAAA","file":"vue-kindeditor.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueKindEditor\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueKindEditor\"] = factory();\n\telse\n\t\troot[\"VueKindEditor\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueKindEditor\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueKindEditor\"] = factory();\n\telse\n\t\troot[\"VueKindEditor\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'kindeditor-component',\n data: function data() {\n return {\n editor: null,\n outContent: this.content\n };\n },\n\n props: {\n content: {\n type: String,\n default: ''\n },\n id: {\n type: String,\n required: true\n },\n width: {\n type: String\n },\n height: {\n type: String\n },\n minWidth: {\n type: Number,\n default: 650\n },\n minHeight: {\n type: Number,\n default: 100\n },\n items: {\n type: Array,\n default: function _default() {\n return ['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage', 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak', 'anchor', 'link', 'unlink', '|', 'about'];\n }\n },\n noDisableItems: {\n type: Array,\n default: function _default() {\n return ['source', 'fullscreen'];\n }\n },\n filterMode: {\n type: Boolean,\n default: true\n },\n htmlTags: {\n type: Object,\n default: function _default() {\n return {\n font: ['color', 'size', 'face', '.background-color'],\n span: ['style'],\n div: ['class', 'align', 'style'],\n table: ['class', 'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'style'],\n 'td,th': ['class', 'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor', 'style'],\n a: ['class', 'href', 'target', 'name', 'style'],\n embed: ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', 'style', 'align', 'allowscriptaccess', '/'],\n img: ['src', 'width', 'height', 'border', 'alt', 'title', 'align', 'style', '/'],\n hr: ['class', '/'],\n br: ['/'],\n 'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6': ['align', 'style'],\n 'tbody,tr,strong,b,sub,sup,em,i,u,strike': []\n };\n }\n },\n wellFormatMode: {\n type: Boolean,\n default: true\n },\n resizeType: {\n type: Number,\n default: 2\n },\n themeType: {\n type: String,\n default: 'default'\n },\n langType: {\n type: String,\n default: 'zh-CN'\n },\n designMode: {\n type: Boolean,\n default: true\n },\n fullscreenMode: {\n type: Boolean,\n default: false\n },\n basePath: {\n type: String\n },\n themesPath: {\n type: String\n },\n pluginsPath: {\n type: String,\n default: ''\n },\n langPath: {\n type: String\n },\n minChangeSize: {\n type: Number,\n default: 5\n },\n loadStyleMode: {\n type: Boolean,\n default: true\n },\n urlType: {\n type: String,\n default: ''\n },\n newlineTag: {\n type: String,\n default: 'p'\n },\n pasteType: {\n type: Number,\n default: 2\n },\n dialogAlignType: {\n type: String,\n default: 'page'\n },\n shadowMode: {\n type: Boolean,\n default: true\n },\n zIndex: {\n type: Number,\n default: 811213\n },\n useContextmenu: {\n type: Boolean,\n default: true\n },\n syncType: {\n type: String,\n default: 'form'\n },\n indentChar: {\n type: String,\n default: '\\t'\n },\n cssPath: {\n type: [String, Array]\n },\n cssData: {\n type: String\n },\n bodyClass: {\n type: String,\n default: 'ke-content'\n },\n colorTable: {\n type: Array\n },\n afterCreate: {\n type: Function\n },\n afterChange: {\n type: Function\n },\n afterTab: {\n type: Function\n },\n afterFocus: {\n type: Function\n },\n afterBlur: {\n type: Function\n },\n afterUpload: {\n type: Function\n },\n uploadJson: {\n type: String\n },\n fileManagerJson: {\n type: String\n },\n allowPreviewEmoticons: {\n type: Boolean,\n default: true\n },\n allowImageUpload: {\n type: Boolean,\n default: true\n },\n allowFlashUpload: {\n type: Boolean,\n default: true\n },\n allowMediaUpload: {\n type: Boolean,\n default: true\n },\n allowFileUpload: {\n type: Boolean,\n default: true\n },\n allowFileManager: {\n type: Boolean,\n default: false\n },\n fontSizeTable: {\n type: Array,\n default: function _default() {\n return ['9px', '10px', '12px', '14px', '16px', '18px', '24px', '32px'];\n }\n },\n imageTabIndex: {\n type: Number,\n default: 0\n },\n formatUploadUrl: {\n type: Boolean,\n default: true\n },\n fullscreenShortcut: {\n type: Boolean,\n default: false\n },\n extraFileUploadParams: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n filePostName: {\n type: String,\n default: 'imgFile'\n },\n fillDescAfterUploadImage: {\n type: Boolean,\n default: false\n },\n afterSelectFile: {\n type: Function\n },\n pagebreakHtml: {\n type: String,\n default: '
'\n },\n allowImageRemote: {\n type: Boolean,\n default: true\n },\n autoHeightMode: {\n type: Boolean,\n default: false\n },\n fixToolBar: {\n type: Boolean,\n default: false\n },\n tabIndex: {\n type: Number\n }\n },\n watch: {\n content: function content(val) {\n this.editor && val !== this.outContent && this.editor.html(val);\n },\n outContent: function outContent(val) {\n this.$emit('update:content', val);\n this.$emit('on-content-change', val);\n }\n },\n mounted: function mounted() {\n // 初始访问时创建\n this.initEditor();\n },\n\n /**\r\n * keep-alive 会用到进入时调用activated 离开时调用deactivated\r\n * 初始访问 created、mounted 切换时deactivated 再次进入时 activated\r\n */\n activated: function activated() {\n // keep-alive 进入时创建\n this.initEditor();\n },\n deactivated: function deactivated() {\n // keep-alive 离开时移除\n this.removeEditor();\n },\n\n methods: {\n removeEditor: function removeEditor() {\n window.KindEditor.remove('#' + this.id);\n },\n initEditor: function initEditor() {\n var _this = this;\n _this.removeEditor();\n _this.editor = window.KindEditor.create('#' + this.id, {\n width: _this.width,\n height: _this.height,\n minWidth: _this.minWidth,\n minHeight: _this.minHeight,\n items: _this.items,\n noDisableItems: _this.noDisableItems,\n filterMode: _this.filterMode,\n htmlTags: _this.htmlTags,\n wellFormatMode: _this.wellFormatMode,\n resizeType: _this.resizeType,\n themeType: _this.themeType,\n langType: _this.langType,\n designMode: _this.designMode,\n fullscreenMode: _this.fullscreenMode,\n basePath: _this.basePath,\n themesPath: _this.themesPath,\n pluginsPath: _this.pluginsPath,\n langPath: _this.langPath,\n minChangeSize: _this.minChangeSize,\n loadStyleMode: _this.loadStyleMode,\n urlType: _this.urlType,\n newlineTag: _this.newlineTag,\n pasteType: _this.pasteType,\n dialogAlignType: _this.dialogAlignType,\n shadowMode: _this.shadowMode,\n zIndex: _this.zIndex,\n useContextmenu: _this.useContextmenu,\n syncType: _this.syncType,\n indentChar: _this.indentChar,\n cssPath: _this.cssPath,\n cssData: _this.cssData,\n bodyClass: _this.bodyClass,\n colorTable: _this.colorTable,\n afterCreate: _this.afterCreate,\n afterChange: function afterChange() {\n _this.outContent = this.html();\n },\n afterTab: _this.afterTab,\n afterFocus: _this.afterFocus,\n afterBlur: _this.afterBlur,\n afterUpload: _this.afterUpload,\n uploadJson: _this.uploadJson,\n fileManagerJson: _this.fileManagerJson,\n allowPreviewEmoticons: _this.allowPreviewEmoticons,\n allowImageUpload: _this.allowImageUpload,\n allowFlashUpload: _this.allowFlashUpload,\n allowMediaUpload: _this.allowMediaUpload,\n allowFileUpload: _this.allowFileUpload,\n allowFileManager: _this.allowFileManager,\n fontSizeTable: _this.fontSizeTable,\n imageTabIndex: _this.imageTabIndex,\n formatUploadUrl: _this.formatUploadUrl,\n fullscreenShortcut: _this.fullscreenShortcut,\n extraFileUploadParams: _this.extraFileUploadParams,\n filePostName: _this.filePostName,\n fillDescAfterUploadImage: _this.fillDescAfterUploadImage,\n afterSelectFile: _this.afterSelectFile,\n pagebreakHtml: _this.pagebreakHtml,\n allowImageRemote: _this.allowImageRemote,\n autoHeightMode: _this.autoHeightMode,\n fixToolBar: _this.fixToolBar,\n tabIndex: _this.tabIndex\n });\n }\n }\n});\n\n/***/ }),\n/* 1 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_KindEditor_vue__ = __webpack_require__(2);\n\n\nvar VueKindEditor = {\n install: function install(Vue, options) {\n Vue.component('editor', __WEBPACK_IMPORTED_MODULE_0__components_KindEditor_vue__[\"a\" /* default */]);\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (VueKindEditor);\n\n/***/ }),\n/* 2 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_KindEditor_vue__ = __webpack_require__(0);\n/* unused harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_aeb9218e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_KindEditor_vue__ = __webpack_require__(4);\nvar normalizeComponent = __webpack_require__(3)\n/* script */\n\n\n/* template */\n\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_KindEditor_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_aeb9218e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_KindEditor_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"kindeditor-component\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.outContent),expression:\"outContent\"}],attrs:{\"id\":_vm.id,\"name\":\"content\"},domProps:{\"value\":(_vm.outContent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.outContent=$event.target.value}}})])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// vue-kindeditor.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 7e757e900274dbb60235","\r\n \r\n \r\n
\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/components/KindEditor.vue","import KindEditor from './components/KindEditor.vue'\r\n\r\n\r\nconst VueKindEditor = {\r\n install(Vue, options) {\r\n Vue.component('editor', KindEditor)\r\n }\r\n};\r\n\r\nexport default VueKindEditor;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./KindEditor.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./KindEditor.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-aeb9218e\\\",\\\"hasScoped\\\":false,\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./KindEditor.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/KindEditor.vue\n// module id = 2\n// module chunks = 0","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/component-normalizer.js\n// module id = 3\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"kindeditor-component\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.outContent),expression:\"outContent\"}],attrs:{\"id\":_vm.id,\"name\":\"content\"},domProps:{\"value\":(_vm.outContent)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.outContent=$event.target.value}}})])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-aeb9218e\",\"hasScoped\":false,\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/KindEditor.vue\n// module id = 4\n// module chunks = 0"],"sourceRoot":""}
--------------------------------------------------------------------------------