Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit c2af624

Browse files
author
peak
committed
v0.5.1
1 parent 8631969 commit c2af624

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

dist/vue-html5-editor.js

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue-html5-editor 0.5.0
2+
* Vue-html5-editor 0.5.1
33
* https://github.com/PeakTai/vue-html5-editor
44
*/
55
(function webpackUniversalModuleDefinition(root, factory) {
@@ -200,7 +200,7 @@ return /******/ (function(modules) { // webpackBootstrap
200200
if (module.dashboard) {
201201
//$options.module
202202
module.dashboard.module = module;
203-
components[module.name] = module.dashboard;
203+
components['dashboard-' + module.name] = module.dashboard;
204204
}
205205
if (options.icons && options.icons[module.name]) {
206206
module.icon = options.icons[module.name];
@@ -1067,10 +1067,12 @@ return /******/ (function(modules) { // webpackBootstrap
10671067
// <div class="vue-html5-editor" :style="{'z-index':zIndex}" :class="{'full-screen':fullScreen}">
10681068
// <div class="toolbar" :style="{'z-index':zIndex+1}" v-el:toolbar>
10691069
// <ul>
1070-
// <li v-for="module in modules" v-if="module.show" :title="locale[module.i18n]"
1071-
// @click="activeModule(module)">
1072-
// <span class="icon" :class="module.icon"></span>
1073-
// </li>
1070+
// <template v-for="module in modules">
1071+
// <li v-if="module.show" :title="locale[module.i18n]"
1072+
// @click="activeModule(module)">
1073+
// <span class="icon" :class="module.icon"></span>
1074+
// </li>
1075+
// </template>
10741076
// </ul>
10751077
// <div class="dashboard" v-show="dashboard" :style="dashboardStyle">
10761078
// <div v-if="dashboard" :is="dashboard" keep-alive></div>
@@ -1215,7 +1217,7 @@ return /******/ (function(modules) { // webpackBootstrap
12151217
return;
12161218
}
12171219
if (module.hasDashboard) {
1218-
this.toggleDashboard(module.name);
1220+
this.toggleDashboard('dashboard-' + module.name);
12191221
}
12201222
}
12211223
},
@@ -1262,7 +1264,7 @@ return /******/ (function(modules) { // webpackBootstrap
12621264
/* 42 */
12631265
/***/ function(module, exports) {
12641266

1265-
module.exports = "\n<div class=\"vue-html5-editor\" :style=\"{'z-index':zIndex}\" :class=\"{'full-screen':fullScreen}\">\n <div class=\"toolbar\" :style=\"{'z-index':zIndex+1}\" v-el:toolbar>\n <ul>\n <li v-for=\"module in modules\" v-if=\"module.show\" :title=\"locale[module.i18n]\"\n @click=\"activeModule(module)\">\n <span class=\"icon\" :class=\"module.icon\"></span>\n </li>\n </ul>\n <div class=\"dashboard\" v-show=\"dashboard\" :style=\"dashboardStyle\">\n <div v-if=\"dashboard\" :is=\"dashboard\" keep-alive></div>\n </div>\n </div>\n <div class=\"content\" v-el:content contenteditable=\"true\" @click=\"toggleDashboard(dashboard)\"\n :style=\"contentStyle\">\n </div>\n</div>\n";
1267+
module.exports = "\n<div class=\"vue-html5-editor\" :style=\"{'z-index':zIndex}\" :class=\"{'full-screen':fullScreen}\">\n <div class=\"toolbar\" :style=\"{'z-index':zIndex+1}\" v-el:toolbar>\n <ul>\n <template v-for=\"module in modules\">\n <li v-if=\"module.show\" :title=\"locale[module.i18n]\"\n @click=\"activeModule(module)\">\n <span class=\"icon\" :class=\"module.icon\"></span>\n </li>\n </template>\n </ul>\n <div class=\"dashboard\" v-show=\"dashboard\" :style=\"dashboardStyle\">\n <div v-if=\"dashboard\" :is=\"dashboard\" keep-alive></div>\n </div>\n </div>\n <div class=\"content\" v-el:content contenteditable=\"true\" @click=\"toggleDashboard(dashboard)\"\n :style=\"contentStyle\">\n </div>\n</div>\n";
12661268

12671269
/***/ },
12681270
/* 43 */
@@ -2162,7 +2164,8 @@ return /******/ (function(modules) { // webpackBootstrap
21622164

21632165
var file = this.$els.file.files[0];
21642166
if (file.size > config.size_limit) {
2165-
alert("文件过大");
2167+
var prompt = component.$parent.locale["exceed size limit"];
2168+
alert(prompt);
21662169
return;
21672170
}
21682171
component.$els.file.value = null;
@@ -4062,7 +4065,7 @@ return /******/ (function(modules) { // webpackBootstrap
40624065
exports.default = {
40634066
data: function data() {
40644067
return {
4065-
version: ("0.5.0")
4068+
version: ("0.5.1")
40664069
};
40674070
}
40684071
};
@@ -4126,7 +4129,8 @@ return /******/ (function(modules) { // webpackBootstrap
41264129
"reset": "重置",
41274130
"hr": "分隔线",
41284131
"undo": "撤消",
4129-
"line height": "行高"
4132+
"line height": "行高",
4133+
"exceed size limit": "超出大小限制"
41304134
};
41314135

41324136
/***/ },
@@ -4181,7 +4185,8 @@ return /******/ (function(modules) { // webpackBootstrap
41814185
"reset": "reset",
41824186
"hr": "horizontal rule",
41834187
"undo": "undo",
4184-
"line height": "line height"
4188+
"line height": "line height",
4189+
"exceed size limit": "exceed size limit"
41854190
};
41864191

41874192
/***/ },

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-html5-editor",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "A WYSIWYG text editor base on html5 and vue",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)