├── src
├── assets
│ └── logo.png
├── index.js
└── components
│ └── KindEditor.vue
├── .babelrc
├── .gitignore
├── .editorconfig
├── index.html
├── License.md
├── package.json
├── webpack.config.js
├── README.md
└── dist
├── vue-kindeditor.js
└── vue-kindeditor.js.map
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ff755/vue-kindeditor/HEAD/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 |
--------------------------------------------------------------------------------
/License.md:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright 2022 ff755
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-kindeditor",
3 | "description": "vue kindeditor plugin",
4 | "version": "0.4.9",
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 | 2021/01/17 修复,当未设置header参数时报错
4 |
5 | 2020/12/30 更新
6 | props 增加 header,结构为对象
7 | 作用:可增加header,后端验证,防止上传接口被攻击
8 |
9 | 示例:
10 | ```
11 |
16 |
17 | ```
18 | 参数格式:```header: { key: value }```
19 |
20 | 需修改kindeditor-all.js
21 | kindeditor-all.js文件的4539行,修改了_ajax函数,添加了header.
22 | 6909行
23 | ```
24 | var header=self.header;
25 | K.ajax(K.addParam(fileManagerJson,param + '&' + new Date().getTime()), function(data) {
26 | dialog.hideLoading();
27 | func(data);
28 | },header);
29 | ```
30 | 此功能由用户 @liqz2009 提供
31 |
32 | 依赖
33 | vue 2
34 | kindeditor 4
35 |
36 | 1. [License](#License)
37 |
38 | 2. [安装](#安装)
39 |
40 | 3. [使用](#使用)
41 |
42 | 4. [初始化参数](#初始化参数)
43 |
44 | 5. [演示](#演示)
45 |
46 | 6. [最近更新](#最近更新)
47 |
48 | 7. [常见问题](#常见问题)
49 |
50 | ## License
51 |
52 | MIT License
53 |
54 | ## 安装
55 |
56 | ```bash
57 | yarn add vue-kindeditor
58 | ```
59 |
60 | ## 使用
61 |
62 | ```js
63 | import Vue from 'vue'
64 | import App from './App'
65 | import router from './router'
66 | import VueKindEditor from 'vue-kindeditor'
67 | import 'kindeditor/kindeditor-all-min.js'
68 | import 'kindeditor/themes/default/default.css'
69 |
70 | Vue.config.productionTip = false
71 | /* eslint-disable no-new */
72 | Vue.use(VueKindEditor)
73 |
74 | /* eslint-disable no-new */
75 | new Vue({
76 | el: '#app',
77 | router,
78 | template: '',
79 | components: { App }
80 | })
81 | ```
82 |
83 |
84 | ```js
85 |
86 |
87 |
vue-kindedtior demo
88 |
93 |
94 |
99 |
100 |
101 |
102 |
126 |
127 |
132 | ```
133 |
134 | ## 初始化参数
135 | [编辑器初始化参数](http://kindeditor.net/docs/option.html)
136 |
137 | ## 演示
138 | [我是demo](https://github.com/ff755/vue-kindedtior-demo)
139 |
140 | ## 最近更新
141 | 重新打包。
142 |
143 | ## 常见问题
144 | [常见问题](https://github.com/ff755/vue-kindeditor/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
145 |
--------------------------------------------------------------------------------
/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:{isReadonly:{type:Boolean,default:!1},header:{type:Object,default:function(){return{}}},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)},isReadonly:function(e){this.editor.readonly(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,{header:e.header,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 |
393 |
--------------------------------------------------------------------------------
/dist/vue-kindeditor.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 17cc049d549b9e022706","webpack:///vue-kindeditor.js","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?c36d"],"names":["root","factory","exports","module","define","amd","self","this","__webpack_require__","moduleId","installedModules","i","l","modules","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","isReadonly","type","Boolean","default","header","String","id","required","width","height","minWidth","Number","minHeight","items","Array","noDisableItems","filterMode","htmlTags","font","span","div","table","a","embed","img","hr","br","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","readonly","mounted","initEditor","activated","deactivated","removeEditor","methods","window","KindEditor","remove","_this","create","VueKindEditor","install","Vue","options","component","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","value","expression","attrs","domProps","on","$event","target","composing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AAG,KAAO,WAAWuI,UAAU,MAASX,EAAc,YAAGY,IAAI,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,YAAqBf,EAAIrI,WAAWkJ,EAAOC,OAAON,cACha1B,KACAkC,GAAcnC,OAAQA,EAAQC,gBAAiBA,EACpC","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"," \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 17cc049d549b9e022706","(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 isReadonly: {\n type: Boolean,\n default: false\n },\n header: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\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 isReadonly: function isReadonly(val) {\n this.editor.readonly(val);\n }\n },\n mounted: function mounted() {\n // 初始访问时创建\n this.initEditor();\n },\n\n /**\n * keep-alive 会用到进入时调用activated 离开时调用deactivated\n * 初始访问 created、mounted 切换时deactivated 再次进入时 activated\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 header: _this.header,\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_4e275940_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_4e275940_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","\n \n \n
\n\n\n\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-4e275940\\\",\\\"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-4e275940\",\"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":""}
--------------------------------------------------------------------------------