jodit 4.11.13 → 4.11.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +286 -40
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +7 -7
- package/es2018/jodit.min.js +26 -26
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +12 -8
- package/es2021/jodit.js +102 -4
- package/es2021/jodit.min.js +25 -21
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +10 -6
- package/es2021.en/jodit.js +102 -4
- package/es2021.en/jodit.min.js +9 -5
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +403 -47
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/request/ajax.d.ts +1 -0
- package/esm/core/request/ajax.js +104 -0
- package/esm/plugins/image-properties/ui/ui-image-main-tab.js +2 -2
- package/esm/types/ajax.d.ts +9 -0
- package/package.json +1 -1
- package/types/core/request/ajax.d.ts +1 -0
- package/types/types/ajax.d.ts +9 -0
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.11.
|
|
4
|
+
* Version: v4.11.15
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -2022,7 +2022,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2022
2022
|
* @packageDocumentation
|
|
2023
2023
|
* @module constants
|
|
2024
2024
|
*/
|
|
2025
|
-
var APP_VERSION = "4.11.
|
|
2025
|
+
var APP_VERSION = "4.11.15";
|
|
2026
2026
|
// prettier-ignore
|
|
2027
2027
|
var ES = "es5";
|
|
2028
2028
|
var IS_ES_MODERN = false;
|
|
@@ -10743,22 +10743,24 @@ var Plugin = /*#__PURE__*/ function(ViewComponent) {
|
|
|
10743
10743
|
/* harmony export */ Ajax: function() { return /* binding */ Ajax; }
|
|
10744
10744
|
/* harmony export */ });
|
|
10745
10745
|
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49376);
|
|
10746
|
-
/* harmony import */ var
|
|
10747
|
-
/* harmony import */ var
|
|
10748
|
-
/* harmony import */ var
|
|
10749
|
-
/* harmony import */ var
|
|
10750
|
-
/* harmony import */ var
|
|
10751
|
-
/* harmony import */ var
|
|
10752
|
-
/* harmony import */ var
|
|
10753
|
-
/* harmony import */ var
|
|
10754
|
-
/* harmony import */ var
|
|
10755
|
-
/* harmony import */ var
|
|
10756
|
-
/* harmony import */ var
|
|
10757
|
-
/* harmony import */ var
|
|
10758
|
-
/* harmony import */ var
|
|
10759
|
-
/* harmony import */ var
|
|
10760
|
-
/* harmony import */ var
|
|
10761
|
-
/* harmony import */ var
|
|
10746
|
+
/* harmony import */ var _swc_helpers_await_async_generator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6311);
|
|
10747
|
+
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73104);
|
|
10748
|
+
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53429);
|
|
10749
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25045);
|
|
10750
|
+
/* harmony import */ var _swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75980);
|
|
10751
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41411);
|
|
10752
|
+
/* harmony import */ var _swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77384);
|
|
10753
|
+
/* harmony import */ var _swc_helpers_wrap_async_generator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(86367);
|
|
10754
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
|
|
10755
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3233);
|
|
10756
|
+
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91231);
|
|
10757
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(81937);
|
|
10758
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49574);
|
|
10759
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(65946);
|
|
10760
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(33201);
|
|
10761
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(5266);
|
|
10762
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(37102);
|
|
10763
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(32855);
|
|
10762
10764
|
/*!
|
|
10763
10765
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10764
10766
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10784,21 +10786,23 @@ var Plugin = /*#__PURE__*/ function(ViewComponent) {
|
|
|
10784
10786
|
|
|
10785
10787
|
|
|
10786
10788
|
|
|
10789
|
+
|
|
10790
|
+
|
|
10787
10791
|
var Ajax = /*#__PURE__*/ function() {
|
|
10788
10792
|
"use strict";
|
|
10789
10793
|
function Ajax(options) {
|
|
10790
|
-
var defaultAjaxOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
10791
|
-
(0,
|
|
10792
|
-
(0,
|
|
10793
|
-
(0,
|
|
10794
|
-
(0,
|
|
10795
|
-
(0,
|
|
10796
|
-
(0,
|
|
10797
|
-
(0,
|
|
10798
|
-
this.options = (0,
|
|
10794
|
+
var defaultAjaxOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : jodit_config__WEBPACK_IMPORTED_MODULE_16__.Config.prototype.defaultAjaxOptions;
|
|
10795
|
+
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_2__._)(this, Ajax);
|
|
10796
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(this, "__async", new jodit_core_async__WEBPACK_IMPORTED_MODULE_11__.Async());
|
|
10797
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(this, "xhr", void 0);
|
|
10798
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(this, "options", void 0);
|
|
10799
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(this, "__isFulfilled", false);
|
|
10800
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(this, "__activated", false);
|
|
10801
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(this, "__isDestructed", false);
|
|
10802
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
10799
10803
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
10800
10804
|
}
|
|
10801
|
-
(0,
|
|
10805
|
+
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__._)(Ajax, [
|
|
10802
10806
|
{
|
|
10803
10807
|
key: "className",
|
|
10804
10808
|
value: function className() {
|
|
@@ -10808,16 +10812,16 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
10808
10812
|
{
|
|
10809
10813
|
key: "__buildParams",
|
|
10810
10814
|
value: function __buildParams(obj, prefix) {
|
|
10811
|
-
if ((0,
|
|
10815
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isPlainObject)(obj) && this.options.contentType && this.options.contentType.includes('application/json')) {
|
|
10812
10816
|
return JSON.stringify(obj);
|
|
10813
10817
|
}
|
|
10814
|
-
if ((0,
|
|
10818
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isFunction)(this.o.queryBuild)) {
|
|
10815
10819
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
10816
10820
|
}
|
|
10817
|
-
if ((0,
|
|
10821
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isString)(obj) || (0,_swc_helpers_instanceof__WEBPACK_IMPORTED_MODULE_5__._)(obj, jodit_core_constants__WEBPACK_IMPORTED_MODULE_12__.globalWindow.FormData) || (typeof obj === "undefined" ? "undefined" : (0,_swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_7__._)(obj)) === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isFunction)(obj.append)) {
|
|
10818
10822
|
return obj;
|
|
10819
10823
|
}
|
|
10820
|
-
return (0,
|
|
10824
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.buildQuery)(obj);
|
|
10821
10825
|
}
|
|
10822
10826
|
},
|
|
10823
10827
|
{
|
|
@@ -10849,22 +10853,22 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
10849
10853
|
return this.__async.promise(function(resolve, reject) {
|
|
10850
10854
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
10851
10855
|
var _this, _o_withCredentials, onReject, onResolve, url, data, method, headers;
|
|
10852
|
-
return (0,
|
|
10856
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_10__._)(this, function(_state) {
|
|
10853
10857
|
switch(_state.label){
|
|
10854
10858
|
case 0:
|
|
10855
10859
|
_this = this;
|
|
10856
10860
|
onReject = function onReject() {
|
|
10857
10861
|
_this.__isFulfilled = true;
|
|
10858
|
-
reject(
|
|
10862
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__.connection('Connection error'));
|
|
10859
10863
|
};
|
|
10860
10864
|
onResolve = function onResolve() {
|
|
10861
10865
|
_this.__isFulfilled = true;
|
|
10862
|
-
resolve(new
|
|
10866
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_18__.Response(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
10863
10867
|
};
|
|
10864
10868
|
xhr.onload = onResolve;
|
|
10865
10869
|
xhr.onabort = function() {
|
|
10866
10870
|
_this.__isFulfilled = true;
|
|
10867
|
-
reject(
|
|
10871
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__.abort('Abort connection'));
|
|
10868
10872
|
};
|
|
10869
10873
|
xhr.onerror = onReject;
|
|
10870
10874
|
xhr.ontimeout = onReject;
|
|
@@ -10887,7 +10891,7 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
10887
10891
|
onResolve();
|
|
10888
10892
|
} else if (xhr.statusText) {
|
|
10889
10893
|
_this.__isFulfilled = true;
|
|
10890
|
-
reject(
|
|
10894
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__.connection(xhr.statusText));
|
|
10891
10895
|
}
|
|
10892
10896
|
}
|
|
10893
10897
|
};
|
|
@@ -10898,7 +10902,7 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
10898
10902
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
10899
10903
|
}
|
|
10900
10904
|
headers = o.headers;
|
|
10901
|
-
if (!(0,
|
|
10905
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isFunction)(headers)) return [
|
|
10902
10906
|
3,
|
|
10903
10907
|
2
|
|
10904
10908
|
];
|
|
@@ -10928,22 +10932,227 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
10928
10932
|
});
|
|
10929
10933
|
}
|
|
10930
10934
|
},
|
|
10935
|
+
{
|
|
10936
|
+
key: "stream",
|
|
10937
|
+
value: function stream() {
|
|
10938
|
+
return (0,_swc_helpers_wrap_async_generator__WEBPACK_IMPORTED_MODULE_8__._)(function() {
|
|
10939
|
+
var _this, _o_withCredentials, _this1, xhr, o, request, lastIndex, buffer, queue, waitResolve, done, streamError, notify, processChunk, url, data, method, headers;
|
|
10940
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_10__._)(this, function(_state) {
|
|
10941
|
+
switch(_state.label){
|
|
10942
|
+
case 0:
|
|
10943
|
+
_this = this;
|
|
10944
|
+
this.__activated = true;
|
|
10945
|
+
_this1 = this, xhr = _this1.xhr, o = _this1.o;
|
|
10946
|
+
request = this.prepareRequest();
|
|
10947
|
+
lastIndex = 0;
|
|
10948
|
+
buffer = '';
|
|
10949
|
+
queue = [];
|
|
10950
|
+
waitResolve = null;
|
|
10951
|
+
done = false;
|
|
10952
|
+
streamError = null;
|
|
10953
|
+
notify = function notify() {
|
|
10954
|
+
if (waitResolve) {
|
|
10955
|
+
var r = waitResolve;
|
|
10956
|
+
waitResolve = null;
|
|
10957
|
+
r();
|
|
10958
|
+
}
|
|
10959
|
+
};
|
|
10960
|
+
processChunk = function processChunk(final) {
|
|
10961
|
+
var _events_pop;
|
|
10962
|
+
var text = xhr.responseText;
|
|
10963
|
+
buffer += text.substring(lastIndex);
|
|
10964
|
+
lastIndex = text.length;
|
|
10965
|
+
var events = buffer.split('\n\n');
|
|
10966
|
+
buffer = final ? '' : (_events_pop = events.pop()) !== null && _events_pop !== void 0 ? _events_pop : '';
|
|
10967
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
10968
|
+
try {
|
|
10969
|
+
for(var _iterator = events[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
10970
|
+
var event = _step.value;
|
|
10971
|
+
var trimmed = event.trim();
|
|
10972
|
+
if (!trimmed) {
|
|
10973
|
+
continue;
|
|
10974
|
+
}
|
|
10975
|
+
var dataLines = [];
|
|
10976
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
10977
|
+
try {
|
|
10978
|
+
for(var _iterator1 = trimmed.split('\n')[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
10979
|
+
var line = _step1.value;
|
|
10980
|
+
if (line.startsWith('data: ')) {
|
|
10981
|
+
dataLines.push(line.slice(6));
|
|
10982
|
+
} else if (line.startsWith('data:')) {
|
|
10983
|
+
dataLines.push(line.slice(5));
|
|
10984
|
+
}
|
|
10985
|
+
}
|
|
10986
|
+
} catch (err) {
|
|
10987
|
+
_didIteratorError1 = true;
|
|
10988
|
+
_iteratorError1 = err;
|
|
10989
|
+
} finally{
|
|
10990
|
+
try {
|
|
10991
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
10992
|
+
_iterator1.return();
|
|
10993
|
+
}
|
|
10994
|
+
} finally{
|
|
10995
|
+
if (_didIteratorError1) {
|
|
10996
|
+
throw _iteratorError1;
|
|
10997
|
+
}
|
|
10998
|
+
}
|
|
10999
|
+
}
|
|
11000
|
+
if (dataLines.length) {
|
|
11001
|
+
queue.push(dataLines.join('\n'));
|
|
11002
|
+
}
|
|
11003
|
+
}
|
|
11004
|
+
} catch (err) {
|
|
11005
|
+
_didIteratorError = true;
|
|
11006
|
+
_iteratorError = err;
|
|
11007
|
+
} finally{
|
|
11008
|
+
try {
|
|
11009
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
11010
|
+
_iterator.return();
|
|
11011
|
+
}
|
|
11012
|
+
} finally{
|
|
11013
|
+
if (_didIteratorError) {
|
|
11014
|
+
throw _iteratorError;
|
|
11015
|
+
}
|
|
11016
|
+
}
|
|
11017
|
+
}
|
|
11018
|
+
notify();
|
|
11019
|
+
};
|
|
11020
|
+
xhr.onprogress = function() {
|
|
11021
|
+
return processChunk(false);
|
|
11022
|
+
};
|
|
11023
|
+
xhr.onload = function() {
|
|
11024
|
+
processChunk(true);
|
|
11025
|
+
done = true;
|
|
11026
|
+
_this.__isFulfilled = true;
|
|
11027
|
+
notify();
|
|
11028
|
+
};
|
|
11029
|
+
xhr.onerror = function() {
|
|
11030
|
+
streamError = jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__.connection('Connection error');
|
|
11031
|
+
done = true;
|
|
11032
|
+
_this.__isFulfilled = true;
|
|
11033
|
+
notify();
|
|
11034
|
+
};
|
|
11035
|
+
xhr.onabort = function() {
|
|
11036
|
+
streamError = jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__.abort('Abort connection');
|
|
11037
|
+
done = true;
|
|
11038
|
+
_this.__isFulfilled = true;
|
|
11039
|
+
notify();
|
|
11040
|
+
};
|
|
11041
|
+
xhr.withCredentials = (_o_withCredentials = o.withCredentials) !== null && _o_withCredentials !== void 0 ? _o_withCredentials : false;
|
|
11042
|
+
url = request.url, data = request.data, method = request.method;
|
|
11043
|
+
xhr.open(method, url, true);
|
|
11044
|
+
if (o.contentType && xhr.setRequestHeader) {
|
|
11045
|
+
xhr.setRequestHeader('Content-type', o.contentType);
|
|
11046
|
+
}
|
|
11047
|
+
headers = o.headers;
|
|
11048
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isFunction)(headers)) return [
|
|
11049
|
+
3,
|
|
11050
|
+
2
|
|
11051
|
+
];
|
|
11052
|
+
return [
|
|
11053
|
+
4,
|
|
11054
|
+
(0,_swc_helpers_await_async_generator__WEBPACK_IMPORTED_MODULE_1__._)(headers.call(this))
|
|
11055
|
+
];
|
|
11056
|
+
case 1:
|
|
11057
|
+
headers = _state.sent();
|
|
11058
|
+
_state.label = 2;
|
|
11059
|
+
case 2:
|
|
11060
|
+
if (headers && xhr.setRequestHeader) {
|
|
11061
|
+
Object.keys(headers).forEach(function(key) {
|
|
11062
|
+
xhr.setRequestHeader(key, headers[key]);
|
|
11063
|
+
});
|
|
11064
|
+
}
|
|
11065
|
+
xhr.send(data ? this.__buildParams(data) : undefined);
|
|
11066
|
+
_state.label = 3;
|
|
11067
|
+
case 3:
|
|
11068
|
+
_state.trys.push([
|
|
11069
|
+
3,
|
|
11070
|
+
,
|
|
11071
|
+
11,
|
|
11072
|
+
12
|
|
11073
|
+
]);
|
|
11074
|
+
_state.label = 4;
|
|
11075
|
+
case 4:
|
|
11076
|
+
if (false) // removed by dead control flow
|
|
11077
|
+
{}
|
|
11078
|
+
if (!(queue.length > 0)) return [
|
|
11079
|
+
3,
|
|
11080
|
+
6
|
|
11081
|
+
];
|
|
11082
|
+
return [
|
|
11083
|
+
4,
|
|
11084
|
+
queue.shift()
|
|
11085
|
+
];
|
|
11086
|
+
case 5:
|
|
11087
|
+
_state.sent();
|
|
11088
|
+
return [
|
|
11089
|
+
3,
|
|
11090
|
+
9
|
|
11091
|
+
];
|
|
11092
|
+
case 6:
|
|
11093
|
+
if (!done) return [
|
|
11094
|
+
3,
|
|
11095
|
+
7
|
|
11096
|
+
];
|
|
11097
|
+
return [
|
|
11098
|
+
3,
|
|
11099
|
+
10
|
|
11100
|
+
];
|
|
11101
|
+
case 7:
|
|
11102
|
+
return [
|
|
11103
|
+
4,
|
|
11104
|
+
(0,_swc_helpers_await_async_generator__WEBPACK_IMPORTED_MODULE_1__._)(new Promise(function(r) {
|
|
11105
|
+
waitResolve = r;
|
|
11106
|
+
}))
|
|
11107
|
+
];
|
|
11108
|
+
case 8:
|
|
11109
|
+
_state.sent();
|
|
11110
|
+
_state.label = 9;
|
|
11111
|
+
case 9:
|
|
11112
|
+
return [
|
|
11113
|
+
3,
|
|
11114
|
+
4
|
|
11115
|
+
];
|
|
11116
|
+
case 10:
|
|
11117
|
+
return [
|
|
11118
|
+
3,
|
|
11119
|
+
12
|
|
11120
|
+
];
|
|
11121
|
+
case 11:
|
|
11122
|
+
if (!this.__isFulfilled) {
|
|
11123
|
+
this.abort();
|
|
11124
|
+
}
|
|
11125
|
+
return [
|
|
11126
|
+
7
|
|
11127
|
+
];
|
|
11128
|
+
case 12:
|
|
11129
|
+
if (streamError) {
|
|
11130
|
+
throw streamError;
|
|
11131
|
+
}
|
|
11132
|
+
return [
|
|
11133
|
+
2
|
|
11134
|
+
];
|
|
11135
|
+
}
|
|
11136
|
+
});
|
|
11137
|
+
}).call(this);
|
|
11138
|
+
}
|
|
11139
|
+
},
|
|
10931
11140
|
{
|
|
10932
11141
|
key: "prepareRequest",
|
|
10933
11142
|
value: function prepareRequest() {
|
|
10934
11143
|
if (!this.o.url) {
|
|
10935
|
-
throw
|
|
11144
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_15__.error('Need URL for AJAX request');
|
|
10936
11145
|
}
|
|
10937
11146
|
var url = this.o.url;
|
|
10938
11147
|
var data = this.o.data;
|
|
10939
11148
|
var method = (this.o.method || 'get').toLowerCase();
|
|
10940
|
-
if (method === 'get' && data && (0,
|
|
11149
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.isPlainObject)(data)) {
|
|
10941
11150
|
var qIndex = url.indexOf('?');
|
|
10942
11151
|
if (qIndex !== -1) {
|
|
10943
|
-
var urlData = (0,
|
|
10944
|
-
url = url.substring(0, qIndex) + '?' + (0,
|
|
11152
|
+
var urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.parseQuery)(url);
|
|
11153
|
+
url = url.substring(0, qIndex) + '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.buildQuery)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, urlData, data));
|
|
10945
11154
|
} else {
|
|
10946
|
-
url += '?' + (0,
|
|
11155
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_14__.buildQuery)(this.o.data);
|
|
10947
11156
|
}
|
|
10948
11157
|
}
|
|
10949
11158
|
var request = {
|
|
@@ -10972,9 +11181,9 @@ var Ajax = /*#__PURE__*/ function() {
|
|
|
10972
11181
|
]);
|
|
10973
11182
|
return Ajax;
|
|
10974
11183
|
}();
|
|
10975
|
-
(0,
|
|
10976
|
-
(0,
|
|
10977
|
-
|
|
11184
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(Ajax, "log", []);
|
|
11185
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_9__.__decorate)([
|
|
11186
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_13__.autobind
|
|
10978
11187
|
], Ajax.prototype, "destruct", null);
|
|
10979
11188
|
|
|
10980
11189
|
|
|
@@ -38023,7 +38232,7 @@ var UIImageMainTab = /*#__PURE__*/ function(UIGroup) {
|
|
|
38023
38232
|
{
|
|
38024
38233
|
key: "render",
|
|
38025
38234
|
value: function render() {
|
|
38026
|
-
return '<div class="jodit-form__group &__editSrc">\n <label>~Src~</label>\n <div class="jodit-input_group">\n <input class="jodit-input &__imageSrc" type="text"/>\n <div class="jodit-input_group-buttons &__fixImage">\n
|
|
38235
|
+
return '<div class="jodit-form__group &__editSrc">\n <label>~Src~</label>\n <div class="jodit-input_group">\n <input class="jodit-input &__imageSrc" type="text"/>\n <div class="jodit-input_group-buttons &__fixImage">\n <a class="jodit-button &__changeImage" data-ref="changeImage">*image*</a>\n <a class="jodit-button &__editImage" data-ref="editImage">*crop*</a>\n </div>\n </div>\n </div>\n <div class="jodit-form__group &__editTitle">\n <label>~Title~</label>\n <input type="text" class="jodit-input &__imageTitle"/>\n </div>\n <div class="jodit-form__group &__editAlt">\n <label>~Alternative~</label>\n <input type="text" class="jodit-input &__imageAlt"/>\n </div>\n <div class="jodit-form__group &__editLink">\n <label>~Link~</label>\n <input type="text" class="jodit-input &__imageLink"/>\n </div>\n <div class="jodit-form__group &__editLinkTarget">\n <label class="jodit_vertical_middle">\n <input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>\n <span>~Open link in new tab~</span>\n </label>\n </div>';
|
|
38027
38236
|
}
|
|
38028
38237
|
},
|
|
38029
38238
|
{
|
|
@@ -51562,6 +51771,101 @@ function _assert_this_initialized(self) {
|
|
|
51562
51771
|
|
|
51563
51772
|
|
|
51564
51773
|
|
|
51774
|
+
/***/ }),
|
|
51775
|
+
|
|
51776
|
+
/***/ 75026:
|
|
51777
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
51778
|
+
|
|
51779
|
+
"use strict";
|
|
51780
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51781
|
+
/* harmony export */ _: function() { return /* binding */ _async_generator; }
|
|
51782
|
+
/* harmony export */ });
|
|
51783
|
+
/* harmony import */ var _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15254);
|
|
51784
|
+
function _instanceof(left, right) {
|
|
51785
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
51786
|
+
return !!right[Symbol.hasInstance](left);
|
|
51787
|
+
} else {
|
|
51788
|
+
return left instanceof right;
|
|
51789
|
+
}
|
|
51790
|
+
}
|
|
51791
|
+
|
|
51792
|
+
function _async_generator(gen) {
|
|
51793
|
+
var front, back;
|
|
51794
|
+
function send(key, arg) {
|
|
51795
|
+
return new Promise(function(resolve, reject) {
|
|
51796
|
+
var request = {
|
|
51797
|
+
key: key,
|
|
51798
|
+
arg: arg,
|
|
51799
|
+
resolve: resolve,
|
|
51800
|
+
reject: reject,
|
|
51801
|
+
next: null
|
|
51802
|
+
};
|
|
51803
|
+
if (back) back = back.next = request;
|
|
51804
|
+
else {
|
|
51805
|
+
front = back = request;
|
|
51806
|
+
resume(key, arg);
|
|
51807
|
+
}
|
|
51808
|
+
});
|
|
51809
|
+
}
|
|
51810
|
+
function resume(key, arg) {
|
|
51811
|
+
try {
|
|
51812
|
+
var result = gen[key](arg);
|
|
51813
|
+
var value = result.value;
|
|
51814
|
+
var overloaded = _instanceof(value, _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__._);
|
|
51815
|
+
Promise.resolve(overloaded ? value.v : value).then(function(arg) {
|
|
51816
|
+
if (overloaded) {
|
|
51817
|
+
var nextKey = key === "return" ? "return" : "next";
|
|
51818
|
+
if (!value.k || arg.done) return resume(nextKey, arg);
|
|
51819
|
+
else arg = gen[nextKey](arg).value;
|
|
51820
|
+
}
|
|
51821
|
+
settle(result.done ? "return" : "normal", arg);
|
|
51822
|
+
}, function(err) {
|
|
51823
|
+
resume("throw", err);
|
|
51824
|
+
});
|
|
51825
|
+
} catch (err) {
|
|
51826
|
+
settle("throw", err);
|
|
51827
|
+
}
|
|
51828
|
+
}
|
|
51829
|
+
function settle(type, value) {
|
|
51830
|
+
switch(type){
|
|
51831
|
+
case "return":
|
|
51832
|
+
front.resolve({
|
|
51833
|
+
value: value,
|
|
51834
|
+
done: true
|
|
51835
|
+
});
|
|
51836
|
+
break;
|
|
51837
|
+
case "throw":
|
|
51838
|
+
front.reject(value);
|
|
51839
|
+
break;
|
|
51840
|
+
default:
|
|
51841
|
+
front.resolve({
|
|
51842
|
+
value: value,
|
|
51843
|
+
done: false
|
|
51844
|
+
});
|
|
51845
|
+
break;
|
|
51846
|
+
}
|
|
51847
|
+
front = front.next;
|
|
51848
|
+
if (front) resume(front.key, front.arg);
|
|
51849
|
+
else back = null;
|
|
51850
|
+
}
|
|
51851
|
+
this._invoke = send;
|
|
51852
|
+
if (typeof gen.return !== "function") this.return = undefined;
|
|
51853
|
+
}
|
|
51854
|
+
_async_generator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
51855
|
+
return this;
|
|
51856
|
+
};
|
|
51857
|
+
_async_generator.prototype.next = function(arg) {
|
|
51858
|
+
return this._invoke("next", arg);
|
|
51859
|
+
};
|
|
51860
|
+
_async_generator.prototype.throw = function(arg) {
|
|
51861
|
+
return this._invoke("throw", arg);
|
|
51862
|
+
};
|
|
51863
|
+
_async_generator.prototype.return = function(arg) {
|
|
51864
|
+
return this._invoke("return", arg);
|
|
51865
|
+
};
|
|
51866
|
+
|
|
51867
|
+
|
|
51868
|
+
|
|
51565
51869
|
/***/ }),
|
|
51566
51870
|
|
|
51567
51871
|
/***/ 49376:
|
|
@@ -51600,6 +51904,23 @@ function _async_to_generator(fn) {
|
|
|
51600
51904
|
|
|
51601
51905
|
|
|
51602
51906
|
|
|
51907
|
+
/***/ }),
|
|
51908
|
+
|
|
51909
|
+
/***/ 6311:
|
|
51910
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
51911
|
+
|
|
51912
|
+
"use strict";
|
|
51913
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51914
|
+
/* harmony export */ _: function() { return /* binding */ _await_async_generator; }
|
|
51915
|
+
/* harmony export */ });
|
|
51916
|
+
/* harmony import */ var _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15254);
|
|
51917
|
+
|
|
51918
|
+
function _await_async_generator(value) {
|
|
51919
|
+
return new _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__._(value, /* kind: await */ 0);
|
|
51920
|
+
}
|
|
51921
|
+
|
|
51922
|
+
|
|
51923
|
+
|
|
51603
51924
|
/***/ }),
|
|
51604
51925
|
|
|
51605
51926
|
/***/ 69262:
|
|
@@ -52010,6 +52331,22 @@ function _object_spread_props(target, source) {
|
|
|
52010
52331
|
|
|
52011
52332
|
|
|
52012
52333
|
|
|
52334
|
+
/***/ }),
|
|
52335
|
+
|
|
52336
|
+
/***/ 15254:
|
|
52337
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
52338
|
+
|
|
52339
|
+
"use strict";
|
|
52340
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
52341
|
+
/* harmony export */ _: function() { return /* binding */ _overload_yield; }
|
|
52342
|
+
/* harmony export */ });
|
|
52343
|
+
function _overload_yield(value, /** 0: await 1: delegate */ kind) {
|
|
52344
|
+
this.v = value;
|
|
52345
|
+
this.k = kind;
|
|
52346
|
+
}
|
|
52347
|
+
|
|
52348
|
+
|
|
52349
|
+
|
|
52013
52350
|
/***/ }),
|
|
52014
52351
|
|
|
52015
52352
|
/***/ 96651:
|
|
@@ -52265,6 +52602,25 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
52265
52602
|
|
|
52266
52603
|
|
|
52267
52604
|
|
|
52605
|
+
/***/ }),
|
|
52606
|
+
|
|
52607
|
+
/***/ 86367:
|
|
52608
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
52609
|
+
|
|
52610
|
+
"use strict";
|
|
52611
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
52612
|
+
/* harmony export */ _: function() { return /* binding */ _wrap_async_generator; }
|
|
52613
|
+
/* harmony export */ });
|
|
52614
|
+
/* harmony import */ var _async_generator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75026);
|
|
52615
|
+
|
|
52616
|
+
function _wrap_async_generator(fn) {
|
|
52617
|
+
return function() {
|
|
52618
|
+
return new _async_generator_js__WEBPACK_IMPORTED_MODULE_0__._(fn.apply(this, arguments));
|
|
52619
|
+
};
|
|
52620
|
+
}
|
|
52621
|
+
|
|
52622
|
+
|
|
52623
|
+
|
|
52268
52624
|
/***/ }),
|
|
52269
52625
|
|
|
52270
52626
|
/***/ 38574:
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.11.
|
|
4
|
+
* Version: v4.11.15
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.11.
|
|
11
|
+
* Version: v4.11.15
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|