-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version 3.18.4. Read more https://github.com/xdan/jodit/blob/mast…
- Loading branch information
Showing
14 changed files
with
47 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
@@ -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; | ||
|
@@ -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)); | ||
|
@@ -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'; | ||
|
@@ -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) { | ||
|
@@ -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; | ||
}, | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
@@ -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; | ||
|
@@ -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)); | ||
|
@@ -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'; | ||
|
@@ -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) { | ||
|
@@ -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; | ||
}, | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
@@ -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; | ||
|
@@ -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)); | ||
|
@@ -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) { | ||
|
@@ -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'; | ||
|
@@ -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) { | ||
|
@@ -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; | ||
}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters