jodit 4.0.2 → 4.0.4
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +25 -17
- 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 +25 -17
- 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 +25 -17
- 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 +25 -17
- 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 +25 -17
- 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/constants.js +1 -1
- package/esm/core/selection/selection.js +5 -1
- package/esm/jodit.js +6 -12
- package/esm/plugins/select/select.d.ts +2 -1
- package/esm/plugins/select/select.js +12 -2
- package/package.json +1 -1
- package/types/plugins/select/select.d.ts +2 -1
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.
|
|
4
|
+
* Version: v4.0.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -3084,7 +3084,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3084
3084
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3085
3085
|
*/
|
|
3086
3086
|
|
|
3087
|
-
var APP_VERSION = "4.0.
|
|
3087
|
+
var APP_VERSION = "4.0.4";
|
|
3088
3088
|
// prettier-ignore
|
|
3089
3089
|
var ES = "es5";
|
|
3090
3090
|
var IS_ES_MODERN = false;
|
|
@@ -12856,7 +12856,8 @@ var Selection = /** @class */ (function () {
|
|
|
12856
12856
|
if (this.isCollapsed()) {
|
|
12857
12857
|
return this;
|
|
12858
12858
|
}
|
|
12859
|
-
var range = this.range
|
|
12859
|
+
var range = this.range;
|
|
12860
|
+
var c = range.cloneRange();
|
|
12860
12861
|
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isOrContains(this.j.editor, range.commonAncestorContainer, true)) {
|
|
12861
12862
|
return this;
|
|
12862
12863
|
}
|
|
@@ -12904,6 +12905,9 @@ var Selection = /** @class */ (function () {
|
|
|
12904
12905
|
}
|
|
12905
12906
|
this.selectRange(c);
|
|
12906
12907
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.safeRemove(leftFake, rightFake);
|
|
12908
|
+
if (this.isCollapsed()) {
|
|
12909
|
+
throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.error)('Selection is collapsed');
|
|
12910
|
+
}
|
|
12907
12911
|
return this;
|
|
12908
12912
|
};
|
|
12909
12913
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
@@ -18915,18 +18919,12 @@ var Jodit = /** @class */ (function (_super) {
|
|
|
18915
18919
|
}
|
|
18916
18920
|
if (result !== false) {
|
|
18917
18921
|
this.s.focus();
|
|
18918
|
-
|
|
18919
|
-
this.
|
|
18920
|
-
this.s.expandSelection();
|
|
18922
|
+
try {
|
|
18923
|
+
result = this.nativeExecCommand(command, showUI, value);
|
|
18921
18924
|
}
|
|
18922
|
-
|
|
18923
|
-
|
|
18924
|
-
|
|
18925
|
-
}
|
|
18926
|
-
catch (e) {
|
|
18927
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_PROD) {
|
|
18928
|
-
throw e;
|
|
18929
|
-
}
|
|
18925
|
+
catch (e) {
|
|
18926
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_PROD) {
|
|
18927
|
+
throw e;
|
|
18930
18928
|
}
|
|
18931
18929
|
}
|
|
18932
18930
|
}
|
|
@@ -18937,7 +18935,7 @@ var Jodit = /** @class */ (function (_super) {
|
|
|
18937
18935
|
* @param third - The third option is for the team
|
|
18938
18936
|
*/
|
|
18939
18937
|
this.e.fire('afterCommand', command, showUI, value);
|
|
18940
|
-
this.
|
|
18938
|
+
this.__imdSynchronizeValues(); // synchrony
|
|
18941
18939
|
return result;
|
|
18942
18940
|
};
|
|
18943
18941
|
/**
|
|
@@ -40562,13 +40560,20 @@ var select = /** @class */ (function (_super) {
|
|
|
40562
40560
|
};
|
|
40563
40561
|
select.prototype.beforeCommandCut = function (command) {
|
|
40564
40562
|
var s = this.j.s;
|
|
40565
|
-
if (
|
|
40563
|
+
if (!s.isCollapsed()) {
|
|
40566
40564
|
var current = s.current();
|
|
40567
40565
|
if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isOrContains(this.j.editor, current)) {
|
|
40568
40566
|
this.onCopyNormalizeSelectionBound();
|
|
40569
40567
|
}
|
|
40570
40568
|
}
|
|
40571
40569
|
};
|
|
40570
|
+
select.prototype.beforeCommandSelectall = function (command) {
|
|
40571
|
+
var s = this.j.s;
|
|
40572
|
+
s.focus();
|
|
40573
|
+
s.select(this.j.editor, true);
|
|
40574
|
+
s.expandSelection();
|
|
40575
|
+
return false;
|
|
40576
|
+
};
|
|
40572
40577
|
select.prototype.onCopyNormalizeSelectionBound = function (e) {
|
|
40573
40578
|
var _a = this.j, s = _a.s, editor = _a.editor, o = _a.o;
|
|
40574
40579
|
if (!o.select.normalizeSelectionBeforeCutAndCopy || s.isCollapsed()) {
|
|
@@ -40589,8 +40594,11 @@ var select = /** @class */ (function (_super) {
|
|
|
40589
40594
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('ow:click')
|
|
40590
40595
|
], select.prototype, "onOutsideClick", null);
|
|
40591
40596
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
40592
|
-
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)([':
|
|
40597
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)([':beforeCommandCut'])
|
|
40593
40598
|
], select.prototype, "beforeCommandCut", null);
|
|
40599
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
40600
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)([':beforeCommandSelectall'])
|
|
40601
|
+
], select.prototype, "beforeCommandSelectall", null);
|
|
40594
40602
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
40595
40603
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)([':copy', ':cut'])
|
|
40596
40604
|
], select.prototype, "onCopyNormalizeSelectionBound", null);
|
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.
|
|
4
|
+
* Version: v4.0.4
|
|
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.
|
|
11
|
+
* Version: v4.0.4
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|