Skip to content

Commit

Permalink
2.30.4
Browse files Browse the repository at this point in the history
2.30.4
  • Loading branch information
JiHong88 authored Jun 20, 2020
2 parents 31f53e1 + 1547479 commit f43475b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.30.3",
"version": "2.30.4",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/suneditor.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/suneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sideEffects": [
"./src/assets/css/*.css"
],
"version": "2.30.3",
"version": "2.30.4",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/suneditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
.sun-editor .se-dialog .se-dialog-inner .se-dialog-form .se-math-preview {font-size:13px;}
.sun-editor .se-dialog .se-dialog-inner .se-dialog-form .se-math-preview > span {display:inline-block; -webkit-box-shadow:0 0 0 0.1rem #c7deff; box-shadow:0 0 0 0.1rem #c7deff;}
/* dialog - modal - se-link-preview */
.sun-editor .se-dialog .se-dialog-inner .se-dialog-form .se-link-preview {display:block; height:20px; margin:4px 0 0 4px; font-size:13px; font-weight:normal; font-family:inherit; color:#666; background-color:transparent; overflow:hidden; text-overflow:ellipsis; word-break:break-all; white-space:normal;}
.sun-editor .se-dialog .se-dialog-inner .se-dialog-form .se-link-preview {display:block; height:18px; margin:4px 0 0 4px; font-size:13px; font-weight:normal; font-family:inherit; color:#666; background-color:transparent; overflow:hidden; text-overflow:ellipsis; word-break:break-all; white-space:pre;}

/** --- controller ---------------------------------------------------------- */
.sun-editor .se-controller .se-arrow.se-arrow-up {border-bottom-color:rgba(0, 0, 0, .25);}
Expand Down
9 changes: 6 additions & 3 deletions src/plugins/dialog/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,14 +512,17 @@ export default {
this.context.image._element.setAttribute('data-file-size', file.size);
}

reader.onload = function (update, updateElement, file) {
reader.onload = function (update, updateElement, file, close) {
this.context.image.inputX.value = width;
this.context.image.inputY.value = height;
if (update) this.plugins.image.update_src.call(this, reader.result, updateElement, file);
else this.plugins.image.create_image.call(this, reader.result, imgLinkValue, newWindowCheck, width, height, align, file);

if (i === filesLen) this.closeLoading();
}.bind(this, isUpdate, this.context.image._element, file);
if (close) {
this.closeLoading();
this.selectComponent(updateElement, 'image');
}
}.bind(this, isUpdate, this.context.image._element, file, i === filesLen);

reader.readAsDataURL(file);
}
Expand Down
12 changes: 6 additions & 6 deletions test/dev/suneditor_build_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,13 @@ function ResizeImage (files, uploadHandler) {
reader.readAsDataURL(uploadFile);
}

ss.onImageUploadBefore = function (files, info, core, uploadHandler) {
console.log('files--', files);
console.log('info--', info);
ResizeImage(files, uploadHandler)
// ss.onImageUploadBefore = function (files, info, core, uploadHandler) {
// console.log('files--', files);
// console.log('info--', info);
// ResizeImage(files, uploadHandler)

// return true;
}
// // return true;
// }

ss.onImageUpload = function (targetElement, index, state, info, core) {
console.log('imageInfo-----', info);
Expand Down

0 comments on commit f43475b

Please sign in to comment.