jodit 4.0.0-beta.95 → 4.0.0-beta.99
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 +21 -5
- package/README.md +4 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +95 -88
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +95 -88
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.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 +2 -2
- package/es2021/jodit.js +95 -88
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +95 -88
- package/es2021.en/jodit.min.js +2 -2
- 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 +104 -97
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- 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/esm/core/async/async.d.ts +1 -1
- package/esm/core/async/async.js +4 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/string/ucfirst.js +1 -1
- package/esm/core/helpers/utils/index.d.ts +0 -1
- package/esm/core/helpers/utils/index.js +0 -1
- package/esm/core/selection/interface.d.ts +1 -1
- package/esm/core/ui/form/inputs/area/area.d.ts +1 -1
- package/esm/core/ui/form/inputs/area/area.js +1 -1
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +1 -1
- package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
- package/esm/core/ui/form/inputs/file/file.js +1 -1
- package/esm/core/ui/form/inputs/index.d.ts +1 -1
- package/esm/core/ui/form/inputs/index.js +1 -1
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
- package/esm/core/ui/form/inputs/input/input.js +1 -1
- package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
- package/esm/core/ui/form/inputs/select/select.js +1 -1
- package/esm/modules/messages/messages.d.ts +28 -0
- package/esm/modules/messages/messages.js +28 -0
- package/esm/modules/table/table.d.ts +4 -2
- package/esm/modules/table/table.js +2 -0
- package/esm/modules/widget/color-picker/color-picker.d.ts +1 -1
- package/esm/modules/widget/color-picker/color-picker.js +1 -1
- package/esm/modules/widget/file-selector/file-selector.d.ts +1 -18
- package/esm/modules/widget/file-selector/file-selector.js +12 -19
- package/esm/modules/widget/tabs/tabs.d.ts +17 -6
- package/esm/modules/widget/tabs/tabs.js +17 -6
- package/package.json +1 -1
- package/types/core/async/async.d.ts +1 -1
- package/types/core/helpers/utils/index.d.ts +0 -1
- package/types/core/selection/interface.d.ts +1 -1
- package/types/core/ui/form/inputs/area/area.d.ts +1 -1
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
- package/types/core/ui/form/inputs/file/file.d.ts +1 -1
- package/types/core/ui/form/inputs/index.d.ts +1 -1
- package/types/core/ui/form/inputs/input/input.d.ts +1 -1
- package/types/core/ui/form/inputs/select/select.d.ts +1 -1
- package/types/modules/messages/messages.d.ts +28 -0
- package/types/modules/table/table.d.ts +4 -2
- package/types/modules/widget/color-picker/color-picker.d.ts +1 -1
- package/types/modules/widget/file-selector/file-selector.d.ts +1 -18
- package/types/modules/widget/tabs/tabs.d.ts +17 -6
- package/esm/core/helpers/utils/val.d.ts +0 -9
- package/esm/core/helpers/utils/val.js +0 -18
- package/types/core/helpers/utils/val.d.ts +0 -9
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.0.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.99
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -2316,15 +2316,16 @@ Config.prototype.controls = {};
|
|
|
2316
2316
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2317
2317
|
/* harmony export */ e: function() { return /* binding */ Async; }
|
|
2318
2318
|
/* harmony export */ });
|
|
2319
|
-
/* harmony import */ var
|
|
2320
|
-
/* harmony import */ var
|
|
2321
|
-
/* harmony import */ var
|
|
2322
|
-
/* harmony import */ var
|
|
2323
|
-
/* harmony import */ var
|
|
2324
|
-
/* harmony import */ var
|
|
2325
|
-
/* harmony import */ var
|
|
2319
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
2320
|
+
/* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78037);
|
|
2321
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69099);
|
|
2322
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(45564);
|
|
2323
|
+
/* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59862);
|
|
2324
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2926);
|
|
2325
|
+
/* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32952);
|
|
2326
2326
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52378);
|
|
2327
2327
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0__);
|
|
2328
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41240);
|
|
2328
2329
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62924);
|
|
2329
2330
|
/*!
|
|
2330
2331
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -2340,6 +2341,7 @@ Config.prototype.controls = {};
|
|
|
2340
2341
|
|
|
2341
2342
|
|
|
2342
2343
|
|
|
2344
|
+
|
|
2343
2345
|
var Async = /** @class */ (function () {
|
|
2344
2346
|
function Async() {
|
|
2345
2347
|
var _this = this;
|
|
@@ -2380,14 +2382,17 @@ var Async = /** @class */ (function () {
|
|
|
2380
2382
|
return 0;
|
|
2381
2383
|
}
|
|
2382
2384
|
var options = {};
|
|
2383
|
-
if (
|
|
2385
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__/* .isVoid */ .n)(timeout)) {
|
|
2386
|
+
timeout = 0;
|
|
2387
|
+
}
|
|
2388
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__/* .isNumber */ .h)(timeout)) {
|
|
2384
2389
|
options = timeout;
|
|
2385
2390
|
timeout = options.timeout || 0;
|
|
2386
2391
|
}
|
|
2387
2392
|
if (options.label) {
|
|
2388
2393
|
this.clearLabel(options.label);
|
|
2389
2394
|
}
|
|
2390
|
-
var timer =
|
|
2395
|
+
var timer = jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .setTimeout */ .i.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([callback, timeout], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false)), key = options.label || timer;
|
|
2391
2396
|
this.timers.set(key, timer);
|
|
2392
2397
|
this.__callbacks.set(key, callback);
|
|
2393
2398
|
return timer;
|
|
@@ -2403,16 +2408,16 @@ var Async = /** @class */ (function () {
|
|
|
2403
2408
|
};
|
|
2404
2409
|
Async.prototype.clearLabel = function (label) {
|
|
2405
2410
|
if (label && this.timers.has(label)) {
|
|
2406
|
-
(0,
|
|
2411
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(this.timers.get(label));
|
|
2407
2412
|
this.timers.delete(label);
|
|
2408
2413
|
this.__callbacks.delete(label);
|
|
2409
2414
|
}
|
|
2410
2415
|
};
|
|
2411
2416
|
Async.prototype.clearTimeout = function (timerOrLabel) {
|
|
2412
|
-
if ((0,
|
|
2417
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__/* .isString */ .H)(timerOrLabel)) {
|
|
2413
2418
|
return this.clearLabel(timerOrLabel);
|
|
2414
2419
|
}
|
|
2415
|
-
(0,
|
|
2420
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timerOrLabel);
|
|
2416
2421
|
this.timers.delete(timerOrLabel);
|
|
2417
2422
|
this.__callbacks.delete(timerOrLabel);
|
|
2418
2423
|
};
|
|
@@ -2440,14 +2445,14 @@ var Async = /** @class */ (function () {
|
|
|
2440
2445
|
}
|
|
2441
2446
|
if (!fired) {
|
|
2442
2447
|
timer = 0;
|
|
2443
|
-
var res = fn.apply(void 0, (0,
|
|
2448
|
+
var res = fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2444
2449
|
fired = true;
|
|
2445
2450
|
if (promises.length) {
|
|
2446
2451
|
var runPromises = function () {
|
|
2447
2452
|
promises.forEach(function (res) { return res(); });
|
|
2448
2453
|
promises.length = 0;
|
|
2449
2454
|
};
|
|
2450
|
-
(0,
|
|
2455
|
+
(0,jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_7__/* .isPromise */ .t)(res) ? res.finally(runPromises) : runPromises();
|
|
2451
2456
|
}
|
|
2452
2457
|
}
|
|
2453
2458
|
};
|
|
@@ -2458,18 +2463,18 @@ var Async = /** @class */ (function () {
|
|
|
2458
2463
|
}
|
|
2459
2464
|
fired = false;
|
|
2460
2465
|
if (!timeout) {
|
|
2461
|
-
callFn.apply(void 0, (0,
|
|
2466
|
+
callFn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2462
2467
|
}
|
|
2463
2468
|
else {
|
|
2464
2469
|
if (!timer && firstCallImmediately) {
|
|
2465
|
-
callFn.apply(void 0, (0,
|
|
2470
|
+
callFn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2466
2471
|
}
|
|
2467
|
-
(0,
|
|
2468
|
-
timer = _this.setTimeout(function () { return callFn.apply(void 0, (0,
|
|
2472
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timer);
|
|
2473
|
+
timer = _this.setTimeout(function () { return callFn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false)); }, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
|
|
2469
2474
|
_this.timers.set(fn, timer);
|
|
2470
2475
|
}
|
|
2471
2476
|
};
|
|
2472
|
-
return (0,
|
|
2477
|
+
return (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_9__/* .isPlainObject */ .P)(timeout) && timeout.promisify
|
|
2473
2478
|
? function () {
|
|
2474
2479
|
var args = [];
|
|
2475
2480
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -2478,7 +2483,7 @@ var Async = /** @class */ (function () {
|
|
|
2478
2483
|
var promise = _this.promise(function (res) {
|
|
2479
2484
|
promises.push(res);
|
|
2480
2485
|
});
|
|
2481
|
-
onFire.apply(void 0, (0,
|
|
2486
|
+
onFire.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2482
2487
|
return promise;
|
|
2483
2488
|
}
|
|
2484
2489
|
: onFire;
|
|
@@ -2502,7 +2507,7 @@ var Async = /** @class */ (function () {
|
|
|
2502
2507
|
needCall = true;
|
|
2503
2508
|
if (firstCallImmediately) {
|
|
2504
2509
|
needCall = false;
|
|
2505
|
-
fn.apply(void 0, (0,
|
|
2510
|
+
fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(savedArgs), false));
|
|
2506
2511
|
}
|
|
2507
2512
|
scheduled = true;
|
|
2508
2513
|
_this.__queueMicrotaskNative(function () {
|
|
@@ -2510,7 +2515,7 @@ var Async = /** @class */ (function () {
|
|
|
2510
2515
|
if (_this.isDestructed) {
|
|
2511
2516
|
return;
|
|
2512
2517
|
}
|
|
2513
|
-
needCall && fn.apply(void 0, (0,
|
|
2518
|
+
needCall && fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(savedArgs), false));
|
|
2514
2519
|
});
|
|
2515
2520
|
});
|
|
2516
2521
|
};
|
|
@@ -2538,15 +2543,15 @@ var Async = /** @class */ (function () {
|
|
|
2538
2543
|
needInvoke = true;
|
|
2539
2544
|
lastArgs = args;
|
|
2540
2545
|
if (!timeout) {
|
|
2541
|
-
fn.apply(void 0, (0,
|
|
2546
|
+
fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(lastArgs), false));
|
|
2542
2547
|
return;
|
|
2543
2548
|
}
|
|
2544
2549
|
if (!timer) {
|
|
2545
2550
|
callee = function () {
|
|
2546
2551
|
if (needInvoke) {
|
|
2547
|
-
fn.apply(void 0, (0,
|
|
2552
|
+
fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(lastArgs), false));
|
|
2548
2553
|
needInvoke = false;
|
|
2549
|
-
timer = _this.setTimeout(callee, (0,
|
|
2554
|
+
timer = _this.setTimeout(callee, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
|
|
2550
2555
|
_this.timers.set(callee, timer);
|
|
2551
2556
|
}
|
|
2552
2557
|
else {
|
|
@@ -2634,7 +2639,7 @@ var Async = /** @class */ (function () {
|
|
|
2634
2639
|
this.requestsIdle.forEach(function (key) { return _this.cancelIdleCallback(key); });
|
|
2635
2640
|
this.requestsRaf.forEach(function (key) { return _this.cancelAnimationFrame(key); });
|
|
2636
2641
|
this.timers.forEach(function (key) {
|
|
2637
|
-
return (0,
|
|
2642
|
+
return (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(_this.timers.get(key));
|
|
2638
2643
|
});
|
|
2639
2644
|
this.timers.clear();
|
|
2640
2645
|
this.promisesRejections.forEach(function (reject) { return reject(); });
|
|
@@ -3108,7 +3113,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3108
3113
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3109
3114
|
*/
|
|
3110
3115
|
|
|
3111
|
-
var APP_VERSION = "4.0.0-beta.
|
|
3116
|
+
var APP_VERSION = "4.0.0-beta.99";
|
|
3112
3117
|
// prettier-ignore
|
|
3113
3118
|
var ES = "es5";
|
|
3114
3119
|
var IS_ES_MODERN = false;
|
|
@@ -8675,7 +8680,7 @@ function ucfirst(value) {
|
|
|
8675
8680
|
if (!value.length) {
|
|
8676
8681
|
return '';
|
|
8677
8682
|
}
|
|
8678
|
-
return value[0].toUpperCase() + value.
|
|
8683
|
+
return value[0].toUpperCase() + value.substring(1);
|
|
8679
8684
|
}
|
|
8680
8685
|
|
|
8681
8686
|
|
|
@@ -9878,8 +9883,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9878
9883
|
/* harmony export */ reset: function() { return /* reexport safe */ _reset__WEBPACK_IMPORTED_MODULE_21__.m; },
|
|
9879
9884
|
/* harmony export */ resolveElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.W2; },
|
|
9880
9885
|
/* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_22__.n; },
|
|
9881
|
-
/* harmony export */ set: function() { return /* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_24__.t; }
|
|
9882
|
-
/* harmony export */ val: function() { return /* reexport safe */ _val__WEBPACK_IMPORTED_MODULE_27__.P; }
|
|
9886
|
+
/* harmony export */ set: function() { return /* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_24__.t; }
|
|
9883
9887
|
/* harmony export */ });
|
|
9884
9888
|
/* harmony import */ var _align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13931);
|
|
9885
9889
|
/* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23144);
|
|
@@ -9912,7 +9916,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9912
9916
|
/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(49155);
|
|
9913
9917
|
/* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(56114);
|
|
9914
9918
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(87398);
|
|
9915
|
-
/* harmony import */ var _val__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(96416);
|
|
9916
9919
|
/*!
|
|
9917
9920
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9918
9921
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9948,7 +9951,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9948
9951
|
|
|
9949
9952
|
|
|
9950
9953
|
|
|
9951
|
-
|
|
9952
9954
|
|
|
9953
9955
|
|
|
9954
9956
|
/***/ }),
|
|
@@ -10688,35 +10690,6 @@ var getDataTransfer = function (event) {
|
|
|
10688
10690
|
};
|
|
10689
10691
|
|
|
10690
10692
|
|
|
10691
|
-
/***/ }),
|
|
10692
|
-
|
|
10693
|
-
/***/ 96416:
|
|
10694
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10695
|
-
|
|
10696
|
-
"use strict";
|
|
10697
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10698
|
-
/* harmony export */ P: function() { return /* binding */ val; }
|
|
10699
|
-
/* harmony export */ });
|
|
10700
|
-
/*!
|
|
10701
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10702
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
10703
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
10704
|
-
*/
|
|
10705
|
-
/**
|
|
10706
|
-
* @module helpers/utils
|
|
10707
|
-
*/
|
|
10708
|
-
var val = function (elm, selector, value) {
|
|
10709
|
-
var child = elm.querySelector(selector);
|
|
10710
|
-
if (!child) {
|
|
10711
|
-
return '';
|
|
10712
|
-
}
|
|
10713
|
-
if (value) {
|
|
10714
|
-
child.value = value;
|
|
10715
|
-
}
|
|
10716
|
-
return child.value;
|
|
10717
|
-
};
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
10693
|
/***/ }),
|
|
10721
10694
|
|
|
10722
10695
|
/***/ 97800:
|
|
@@ -15717,7 +15690,7 @@ var UIForm = /** @class */ (function (_super) {
|
|
|
15717
15690
|
*/
|
|
15718
15691
|
|
|
15719
15692
|
/**
|
|
15720
|
-
* @module ui/form
|
|
15693
|
+
* @module ui/form
|
|
15721
15694
|
*/
|
|
15722
15695
|
|
|
15723
15696
|
|
|
@@ -15771,7 +15744,7 @@ var UITextArea = /** @class */ (function (_super) {
|
|
|
15771
15744
|
*/
|
|
15772
15745
|
|
|
15773
15746
|
/**
|
|
15774
|
-
* @module ui/form
|
|
15747
|
+
* @module ui/form
|
|
15775
15748
|
*/
|
|
15776
15749
|
|
|
15777
15750
|
|
|
@@ -15861,7 +15834,7 @@ var UICheckbox = /** @class */ (function (_super) {
|
|
|
15861
15834
|
*/
|
|
15862
15835
|
|
|
15863
15836
|
/**
|
|
15864
|
-
* @module ui/form
|
|
15837
|
+
* @module ui/form
|
|
15865
15838
|
*/
|
|
15866
15839
|
|
|
15867
15840
|
|
|
@@ -15928,7 +15901,7 @@ var UIFileInput = /** @class */ (function (_super) {
|
|
|
15928
15901
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
15929
15902
|
*/
|
|
15930
15903
|
/**
|
|
15931
|
-
* @module ui/form
|
|
15904
|
+
* @module ui/form
|
|
15932
15905
|
*/
|
|
15933
15906
|
|
|
15934
15907
|
|
|
@@ -15961,7 +15934,7 @@ var UIFileInput = /** @class */ (function (_super) {
|
|
|
15961
15934
|
*/
|
|
15962
15935
|
|
|
15963
15936
|
/**
|
|
15964
|
-
* @module ui/form
|
|
15937
|
+
* @module ui/form
|
|
15965
15938
|
*/
|
|
15966
15939
|
|
|
15967
15940
|
|
|
@@ -16220,7 +16193,7 @@ var UIInput = /** @class */ (function (_super) {
|
|
|
16220
16193
|
*/
|
|
16221
16194
|
|
|
16222
16195
|
/**
|
|
16223
|
-
* @module ui/form
|
|
16196
|
+
* @module ui/form
|
|
16224
16197
|
*/
|
|
16225
16198
|
|
|
16226
16199
|
|
|
@@ -24213,15 +24186,43 @@ var UIMessages = /** @class */ (function (_super) {
|
|
|
24213
24186
|
UIMessages.prototype.className = function () {
|
|
24214
24187
|
return 'UIMessages';
|
|
24215
24188
|
};
|
|
24189
|
+
/**
|
|
24190
|
+
* Show popup info message in the lower right corner of the container
|
|
24191
|
+
* ```js
|
|
24192
|
+
* const jodit = Jodit.make('#editor');
|
|
24193
|
+
* jodit.info('Hello world', 3000);
|
|
24194
|
+
* ```
|
|
24195
|
+
*/
|
|
24216
24196
|
UIMessages.prototype.info = function (text, timeout) {
|
|
24217
24197
|
this.__message(text, 'info', timeout);
|
|
24218
24198
|
};
|
|
24199
|
+
/**
|
|
24200
|
+
* Show popup success message in the lower right corner of the container
|
|
24201
|
+
* ```js
|
|
24202
|
+
* const jodit = Jodit.make('#editor');
|
|
24203
|
+
* jodit.success('Hello world', 3000);
|
|
24204
|
+
* ```
|
|
24205
|
+
*/
|
|
24219
24206
|
UIMessages.prototype.success = function (text, timeout) {
|
|
24220
24207
|
this.__message(text, 'success', timeout);
|
|
24221
24208
|
};
|
|
24209
|
+
/**
|
|
24210
|
+
* Show popup error message in the lower right corner of the container
|
|
24211
|
+
* ```js
|
|
24212
|
+
* const jodit = Jodit.make('#editor');
|
|
24213
|
+
* jodit.error('Hello world', 3000);
|
|
24214
|
+
* ```
|
|
24215
|
+
*/
|
|
24222
24216
|
UIMessages.prototype.error = function (text, timeout) {
|
|
24223
24217
|
this.__message(text, 'error', timeout);
|
|
24224
24218
|
};
|
|
24219
|
+
/**
|
|
24220
|
+
* Show popup message in the lower right corner of the container
|
|
24221
|
+
* ```js
|
|
24222
|
+
* const jodit = Jodit.make('#editor');
|
|
24223
|
+
* jodit.message('Hello world', 'info', 3000);
|
|
24224
|
+
* ```
|
|
24225
|
+
*/
|
|
24225
24226
|
UIMessages.prototype.message = function (text, variant, timeout) {
|
|
24226
24227
|
this.__message(text, variant, timeout);
|
|
24227
24228
|
};
|
|
@@ -24567,9 +24568,11 @@ var Table = /** @class */ (function (_super) {
|
|
|
24567
24568
|
/**
|
|
24568
24569
|
* Inserts a new line after row what contains the selected cell
|
|
24569
24570
|
*
|
|
24571
|
+
* @param table - Working table
|
|
24570
24572
|
* @param line - Insert a new line after/before this
|
|
24571
24573
|
* line contains the selected cell
|
|
24572
24574
|
* @param after - Insert a new line after line contains the selected cell
|
|
24575
|
+
* @param create - Instance of Create class
|
|
24573
24576
|
*/
|
|
24574
24577
|
Table.appendRow = function (table, line, after, create) {
|
|
24575
24578
|
var _a;
|
|
@@ -26738,7 +26741,7 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .JO.set('palette', (_palet
|
|
|
26738
26741
|
* @param coldColor - Color value ex. #fff or rgb(123, 123, 123) or rgba(123, 123, 123, 1)
|
|
26739
26742
|
* @example
|
|
26740
26743
|
* ```javascript
|
|
26741
|
-
*
|
|
26744
|
+
* const tabs = TabsWidget(editor, {
|
|
26742
26745
|
* 'Text' : ColorPickerWidget(editor, function (color) {
|
|
26743
26746
|
* box.style.color = color;
|
|
26744
26747
|
* }, box.style.color),
|
|
@@ -26838,27 +26841,10 @@ var ColorPickerWidget = function (editor, callback, coldColor) {
|
|
|
26838
26841
|
* Generate 3 tabs
|
|
26839
26842
|
* upload - Use Drag and Drop
|
|
26840
26843
|
* url - By specifying the image url
|
|
26841
|
-
* filebrowser - After opening the file browser
|
|
26844
|
+
* filebrowser - After opening the file browser. In the absence of one of the parameters will be less tabs
|
|
26842
26845
|
*
|
|
26843
26846
|
* @param callbacks - Object with keys `url`, `upload` and `filebrowser`, values which are callback
|
|
26844
26847
|
* functions with different parameters
|
|
26845
|
-
*
|
|
26846
|
-
* @example
|
|
26847
|
-
* ```javascript
|
|
26848
|
-
* let widget = new Jodit.modules.Widget(editor);
|
|
26849
|
-
*
|
|
26850
|
-
* return widget.c('ImageSelector', {
|
|
26851
|
-
* url: function (url, alt) {
|
|
26852
|
-
* editor.selections.insertImage(url);
|
|
26853
|
-
* },
|
|
26854
|
-
* upload: function (images) {
|
|
26855
|
-
* editor.selections.insertImage(images[0]);
|
|
26856
|
-
* },
|
|
26857
|
-
* filebrowser: function (images) {
|
|
26858
|
-
* editor.selections.insertImage(images[0]);
|
|
26859
|
-
* }
|
|
26860
|
-
* }, image);
|
|
26861
|
-
* ```
|
|
26862
26848
|
*/
|
|
26863
26849
|
var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
|
|
26864
26850
|
if (isImage === void 0) { isImage = true; }
|
|
@@ -26928,13 +26914,13 @@ var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
|
|
|
26928
26914
|
!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(elm) &&
|
|
26929
26915
|
(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'img') || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.$$)('img', elm).length)) {
|
|
26930
26916
|
currentImage = elm.tagName === 'IMG' ? elm : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.$$)('img', elm)[0];
|
|
26931
|
-
|
|
26932
|
-
|
|
26917
|
+
val(form.container, 'input[name=url]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(currentImage, 'src'));
|
|
26918
|
+
val(form.container, 'input[name=text]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(currentImage, 'alt'));
|
|
26933
26919
|
button.state.text = 'Update';
|
|
26934
26920
|
}
|
|
26935
26921
|
if (elm && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'a')) {
|
|
26936
|
-
|
|
26937
|
-
|
|
26922
|
+
val(form.container, 'input[name=url]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'href'));
|
|
26923
|
+
val(form.container, 'input[name=text]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'title'));
|
|
26938
26924
|
button.state.text = 'Update';
|
|
26939
26925
|
}
|
|
26940
26926
|
form.onSubmit(function (data) {
|
|
@@ -26950,6 +26936,16 @@ var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
|
|
|
26950
26936
|
}
|
|
26951
26937
|
return (0,jodit_modules_widget_tabs_tabs__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .I)(editor, tabs);
|
|
26952
26938
|
};
|
|
26939
|
+
function val(elm, selector, value) {
|
|
26940
|
+
var child = elm.querySelector(selector);
|
|
26941
|
+
if (!child) {
|
|
26942
|
+
return '';
|
|
26943
|
+
}
|
|
26944
|
+
if (value) {
|
|
26945
|
+
child.value = value;
|
|
26946
|
+
}
|
|
26947
|
+
return child.value;
|
|
26948
|
+
}
|
|
26953
26949
|
|
|
26954
26950
|
|
|
26955
26951
|
/***/ }),
|
|
@@ -27019,12 +27015,23 @@ var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
|
|
|
27019
27015
|
*
|
|
27020
27016
|
* @example
|
|
27021
27017
|
* ```javascript
|
|
27022
|
-
*
|
|
27023
|
-
*
|
|
27024
|
-
*
|
|
27025
|
-
*
|
|
27026
|
-
*
|
|
27027
|
-
*
|
|
27018
|
+
* const editor = Jodit.make('#editor');
|
|
27019
|
+
* const tabs = Jodit.modules.TabsWidget(editor, [
|
|
27020
|
+
* { name: 'Images', content: '<div>Images</div>' },
|
|
27021
|
+
* {
|
|
27022
|
+
* name: 'Title 2',
|
|
27023
|
+
* content: editor.c.fromHTML('<div>Some content</div>')
|
|
27024
|
+
* },
|
|
27025
|
+
* {
|
|
27026
|
+
* name: 'Color Picker',
|
|
27027
|
+
* content: ColorPickerWidget(
|
|
27028
|
+
* editor,
|
|
27029
|
+
* function (color) {
|
|
27030
|
+
* box.style.color = color;
|
|
27031
|
+
* },
|
|
27032
|
+
* box.style.color
|
|
27033
|
+
* )
|
|
27034
|
+
* }
|
|
27028
27035
|
* ]);
|
|
27029
27036
|
* ```
|
|
27030
27037
|
*/
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.0.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.99
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.0.0-beta.
|
|
11
|
+
* Version: v4.0.0-beta.99
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|