jodit 4.0.0-beta.92 → 4.0.0-beta.94
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 +9 -5
- package/README.md +4 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +17 -8
- 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 +17 -8
- 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 +17 -8
- 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 +17 -8
- 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 +17 -8
- 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 +14 -5
- package/esm/plugins/wrap-nodes/wrap-nodes.js +2 -2
- package/package.json +1 -1
package/es2021/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.94
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1716,7 +1716,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1716
1716
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1717
1717
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1718
1718
|
*/
|
|
1719
|
-
const APP_VERSION = "4.0.0-beta.
|
|
1719
|
+
const APP_VERSION = "4.0.0-beta.94";
|
|
1720
1720
|
// prettier-ignore
|
|
1721
1721
|
const ES = "es2021";
|
|
1722
1722
|
const IS_ES_MODERN = true;
|
|
@@ -10703,7 +10703,7 @@ class Selection {
|
|
|
10703
10703
|
const range = this.createRange();
|
|
10704
10704
|
let start = node, last = node;
|
|
10705
10705
|
do {
|
|
10706
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(start)) {
|
|
10706
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(start) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(start, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
10707
10707
|
break;
|
|
10708
10708
|
}
|
|
10709
10709
|
last = start;
|
|
@@ -10711,7 +10711,7 @@ class Selection {
|
|
|
10711
10711
|
} while (start);
|
|
10712
10712
|
if (!start) {
|
|
10713
10713
|
const fakeNode = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
10714
|
-
if (
|
|
10714
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(last, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
10715
10715
|
last.appendChild(fakeNode);
|
|
10716
10716
|
last = fakeNode;
|
|
10717
10717
|
}
|
|
@@ -10719,8 +10719,17 @@ class Selection {
|
|
|
10719
10719
|
start = last;
|
|
10720
10720
|
}
|
|
10721
10721
|
}
|
|
10722
|
-
|
|
10723
|
-
|
|
10722
|
+
const workElm = start || last;
|
|
10723
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
10724
|
+
range.selectNodeContents(workElm);
|
|
10725
|
+
range.collapse(inStart);
|
|
10726
|
+
}
|
|
10727
|
+
else {
|
|
10728
|
+
inStart || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, 'br')
|
|
10729
|
+
? range.setStartBefore(workElm)
|
|
10730
|
+
: range.setEndAfter(workElm);
|
|
10731
|
+
range.collapse(inStart);
|
|
10732
|
+
}
|
|
10724
10733
|
this.selectRange(range);
|
|
10725
10734
|
return last;
|
|
10726
10735
|
}
|
|
@@ -40870,10 +40879,10 @@ class wrapNodes extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin
|
|
|
40870
40879
|
return;
|
|
40871
40880
|
}
|
|
40872
40881
|
jodit.e
|
|
40873
|
-
.on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn', this.preprocessInput, {
|
|
40882
|
+
.on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn', this.preprocessInput, {
|
|
40874
40883
|
top: true
|
|
40875
40884
|
})
|
|
40876
|
-
.on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn', this.postProcessSetEditorValue);
|
|
40885
|
+
.on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn', this.postProcessSetEditorValue);
|
|
40877
40886
|
}
|
|
40878
40887
|
/** @override **/
|
|
40879
40888
|
beforeDestruct(jodit) {
|