jodit 4.0.0-beta.91 → 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/.nvmrc +1 -1
- package/CHANGELOG.md +36 -5
- package/README.md +7 -7
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +20 -10
- 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 +20 -10
- 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 +20 -10
- 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 +20 -10
- 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 +39839 -39828
- 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/modules/image-editor/config.js +2 -2
- package/esm/modules/uploader/helpers/build-data.js +3 -2
- package/esm/modules/widget/color-picker/color-picker.js +1 -1
- package/esm/plugins/about/about.js +1 -1
- package/esm/plugins/add-new-line/config.js +1 -1
- package/esm/plugins/bold/bold.js +6 -6
- package/esm/plugins/class-span/class-span.js +1 -1
- package/esm/plugins/clean-html/config.js +1 -1
- package/esm/plugins/clipboard/config.js +4 -4
- package/esm/plugins/color/config.js +1 -1
- package/esm/plugins/copy-format/copy-format.js +1 -1
- package/esm/plugins/font/config.js +2 -2
- package/esm/plugins/format-block/config.js +1 -1
- package/esm/plugins/fullsize/config.js +2 -2
- package/esm/plugins/hr/hr.js +1 -1
- package/esm/plugins/image/image.js +1 -1
- package/esm/plugins/indent/config.js +2 -2
- package/esm/plugins/index.js +3 -0
- package/esm/plugins/justify/justify.js +1 -1
- package/esm/plugins/line-height/config.js +1 -1
- package/esm/plugins/link/config.js +2 -2
- package/esm/plugins/ordered-list/config.js +2 -2
- package/esm/plugins/print/print.js +1 -1
- package/esm/plugins/redo-undo/redo-undo.js +2 -2
- package/esm/plugins/search/config.js +1 -1
- package/esm/plugins/source/config.js +1 -1
- package/esm/plugins/speech-recognize/config.js +1 -1
- package/esm/plugins/spellcheck/config.js +1 -1
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/table/config.js +1 -1
- package/esm/plugins/video/config.js +1 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.js +2 -2
- package/esm/styles/icons/index.d.ts +27 -27
- package/esm/styles/icons/index.js +27 -27
- package/package.json +1 -1
- package/types/styles/icons/index.d.ts +27 -27
package/es2015/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
|
*/
|
|
@@ -1715,7 +1715,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1715
1715
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1716
1716
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1717
1717
|
*/
|
|
1718
|
-
const APP_VERSION = "4.0.0-beta.
|
|
1718
|
+
const APP_VERSION = "4.0.0-beta.94";
|
|
1719
1719
|
// prettier-ignore
|
|
1720
1720
|
const ES = "es2015";
|
|
1721
1721
|
const IS_ES_MODERN = true;
|
|
@@ -10746,7 +10746,7 @@ class Selection {
|
|
|
10746
10746
|
const range = this.createRange();
|
|
10747
10747
|
let start = node, last = node;
|
|
10748
10748
|
do {
|
|
10749
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(start)) {
|
|
10749
|
+
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)) {
|
|
10750
10750
|
break;
|
|
10751
10751
|
}
|
|
10752
10752
|
last = start;
|
|
@@ -10754,7 +10754,7 @@ class Selection {
|
|
|
10754
10754
|
} while (start);
|
|
10755
10755
|
if (!start) {
|
|
10756
10756
|
const fakeNode = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
10757
|
-
if (
|
|
10757
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(last, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
10758
10758
|
last.appendChild(fakeNode);
|
|
10759
10759
|
last = fakeNode;
|
|
10760
10760
|
}
|
|
@@ -10762,8 +10762,17 @@ class Selection {
|
|
|
10762
10762
|
start = last;
|
|
10763
10763
|
}
|
|
10764
10764
|
}
|
|
10765
|
-
|
|
10766
|
-
|
|
10765
|
+
const workElm = start || last;
|
|
10766
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
10767
|
+
range.selectNodeContents(workElm);
|
|
10768
|
+
range.collapse(inStart);
|
|
10769
|
+
}
|
|
10770
|
+
else {
|
|
10771
|
+
inStart || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, 'br')
|
|
10772
|
+
? range.setStartBefore(workElm)
|
|
10773
|
+
: range.setEndAfter(workElm);
|
|
10774
|
+
range.collapse(inStart);
|
|
10775
|
+
}
|
|
10767
10776
|
this.selectRange(range);
|
|
10768
10777
|
return last;
|
|
10769
10778
|
}
|
|
@@ -23646,8 +23655,9 @@ function buildData(uploader, data) {
|
|
|
23646
23655
|
return data;
|
|
23647
23656
|
}
|
|
23648
23657
|
const newData = new FD();
|
|
23649
|
-
|
|
23650
|
-
|
|
23658
|
+
const dict = data;
|
|
23659
|
+
Object.keys(dict).forEach(key => {
|
|
23660
|
+
newData.append(key, dict[key]);
|
|
23651
23661
|
});
|
|
23652
23662
|
return newData;
|
|
23653
23663
|
}
|
|
@@ -40927,10 +40937,10 @@ class wrapNodes extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin
|
|
|
40927
40937
|
return;
|
|
40928
40938
|
}
|
|
40929
40939
|
jodit.e
|
|
40930
|
-
.on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn', this.preprocessInput, {
|
|
40940
|
+
.on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn', this.preprocessInput, {
|
|
40931
40941
|
top: true
|
|
40932
40942
|
})
|
|
40933
|
-
.on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn', this.postProcessSetEditorValue);
|
|
40943
|
+
.on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn', this.postProcessSetEditorValue);
|
|
40934
40944
|
}
|
|
40935
40945
|
/** @override **/
|
|
40936
40946
|
beforeDestruct(jodit) {
|