Skip to content

Commit

Permalink
New version 3.18.4. Read more https://github.com/xdan/jodit/blob/mast…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed May 12, 2022
1 parent f34e2ce commit 7e78539
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 31 deletions.
4 changes: 2 additions & 2 deletions build/jodit.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.en.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
17 changes: 11 additions & 6 deletions build/jodit.es2018.en.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -12177,7 +12177,7 @@ class View extends component/* Component */.wA {
this.isView = true;
this.mods = {};
this.components = new Set();
this.version = "3.18.3";
this.version = "3.18.4";
this.buffer = Storage.makeStorage();
this.storage = Storage.makeStorage(true, this.componentName);
this.OPTIONS = View.defaultOptions;
Expand Down Expand Up @@ -12274,10 +12274,10 @@ class View extends component/* Component */.wA {
return this.__isFullSize;
}
getVersion() {
return "3.18.3";
return "3.18.4";
}
static getVersion() {
return "3.18.3";
return "3.18.4";
}
initOptions(options) {
this.options = (0,helpers.ConfigProto)(options || {}, (0,helpers.ConfigProto)(this.options || {}, View.defaultOptions));
Expand Down Expand Up @@ -17349,11 +17349,12 @@ function send_files_sendFiles(uploader, files, handlerSuccess, handlerError, pro
for (let i = 0; i < fileList.length; i += 1) {
file = fileList[i];
if (file) {
const hasRealExtension = /\.[\d\w]+$/.test(file.name);
const mime = file.type.match(/\/([a-z0-9]+)/i);
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
let newName = fileList[i].name ||
Math.random().toString().replace('.', '');
if (extension) {
if (!hasRealExtension && extension) {
let extForReg = extension;
if (['jpeg', 'jpg'].includes(extForReg)) {
extForReg = 'jpeg|jpg';
Expand All @@ -17363,7 +17364,8 @@ function send_files_sendFiles(uploader, files, handlerSuccess, handlerError, pro
newName += '.' + extension;
}
}
form.append(o.filesVariableName(i), fileList[i], newName);
const [key, iFile, name] = o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName);
form.append(key, iFile, name);
}
}
if (process) {
Expand Down Expand Up @@ -17453,6 +17455,9 @@ config/* Config.prototype.uploader */.D.prototype.uploader = {
? resp.data.messages.join(' ')
: '';
},
processFileName(key, file, name) {
return [key, file, name];
},
process(resp) {
return resp.data;
},
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.en.min.js

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions build/jodit.es2018.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -16410,7 +16410,7 @@ class View extends component/* Component */.wA {
this.isView = true;
this.mods = {};
this.components = new Set();
this.version = "3.18.3";
this.version = "3.18.4";
this.buffer = Storage.makeStorage();
this.storage = Storage.makeStorage(true, this.componentName);
this.OPTIONS = View.defaultOptions;
Expand Down Expand Up @@ -16507,10 +16507,10 @@ class View extends component/* Component */.wA {
return this.__isFullSize;
}
getVersion() {
return "3.18.3";
return "3.18.4";
}
static getVersion() {
return "3.18.3";
return "3.18.4";
}
initOptions(options) {
this.options = (0,helpers.ConfigProto)(options || {}, (0,helpers.ConfigProto)(this.options || {}, View.defaultOptions));
Expand Down Expand Up @@ -21582,11 +21582,12 @@ function send_files_sendFiles(uploader, files, handlerSuccess, handlerError, pro
for (let i = 0; i < fileList.length; i += 1) {
file = fileList[i];
if (file) {
const hasRealExtension = /\.[\d\w]+$/.test(file.name);
const mime = file.type.match(/\/([a-z0-9]+)/i);
const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
let newName = fileList[i].name ||
Math.random().toString().replace('.', '');
if (extension) {
if (!hasRealExtension && extension) {
let extForReg = extension;
if (['jpeg', 'jpg'].includes(extForReg)) {
extForReg = 'jpeg|jpg';
Expand All @@ -21596,7 +21597,8 @@ function send_files_sendFiles(uploader, files, handlerSuccess, handlerError, pro
newName += '.' + extension;
}
}
form.append(o.filesVariableName(i), fileList[i], newName);
const [key, iFile, name] = o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName);
form.append(key, iFile, name);
}
}
if (process) {
Expand Down Expand Up @@ -21686,6 +21688,9 @@ config/* Config.prototype.uploader */.D.prototype.uploader = {
? resp.data.messages.join(' ')
: '';
},
processFileName(key, file, name) {
return [key, file, name];
},
process(resp) {
return resp.data;
},
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.es2018.min.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions build/jodit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down Expand Up @@ -16297,7 +16297,7 @@ var View = (function (_super) {
_this.isView = true;
_this.mods = {};
_this.components = new Set();
_this.version = "3.18.3";
_this.version = "3.18.4";
_this.buffer = storage_1.Storage.makeStorage();
_this.storage = storage_1.Storage.makeStorage(true, _this.componentName);
_this.OPTIONS = View.defaultOptions;
Expand Down Expand Up @@ -16443,10 +16443,10 @@ var View = (function (_super) {
configurable: true
});
View.prototype.getVersion = function () {
return "3.18.3";
return "3.18.4";
};
View.getVersion = function () {
return "3.18.3";
return "3.18.4";
};
View.prototype.initOptions = function (options) {
this.options = (0, helpers_1.ConfigProto)(options || {}, (0, helpers_1.ConfigProto)(this.options || {}, View.defaultOptions));
Expand Down Expand Up @@ -22801,6 +22801,7 @@ exports.send = send;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.sendFiles = void 0;
var tslib_1 = __webpack_require__(1);
var helpers_1 = __webpack_require__(187);
var send_1 = __webpack_require__(408);
function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
Expand Down Expand Up @@ -22855,11 +22856,12 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
for (var i = 0; i < fileList.length; i += 1) {
file = fileList[i];
if (file) {
var hasRealExtension = /\.[\d\w]+$/.test(file.name);
var mime_2 = file.type.match(/\/([a-z0-9]+)/i);
var extension = mime_2 && mime_2[1] ? mime_2[1].toLowerCase() : '';
var newName = fileList[i].name ||
Math.random().toString().replace('.', '');
if (extension) {
if (!hasRealExtension && extension) {
var extForReg = extension;
if (['jpeg', 'jpg'].includes(extForReg)) {
extForReg = 'jpeg|jpg';
Expand All @@ -22869,7 +22871,8 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
newName += '.' + extension;
}
}
form_1.append(o.filesVariableName(i), fileList[i], newName);
var _a = tslib_1.__read(o.processFileName.call(uploader, o.filesVariableName(i), fileList[i], newName), 3), key = _a[0], iFile = _a[1], name_1 = _a[2];
form_1.append(key, iFile, name_1);
}
}
if (process) {
Expand Down Expand Up @@ -22946,6 +22949,9 @@ config_1.Config.prototype.uploader = {
? resp.data.messages.join(' ')
: '';
},
processFileName: function (key, file, name) {
return [key, file, name];
},
process: function (resp) {
return resp.data;
},
Expand Down
2 changes: 1 addition & 1 deletion build/jodit.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/jodit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/vdom.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion build/vdom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
* Author: Chupurnov <[email protected]> (https://xdsoft.net/)
* Version: v3.18.3
* Version: v3.18.4
* Url: https://xdsoft.net/jodit/
* License(s): MIT
*/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "3.18.3",
"version": "3.18.4",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down

0 comments on commit 7e78539

Please sign in to comment.