jodit 4.6.14 → 4.6.16
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 +14 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +27 -4
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +27 -4
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- 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 +27 -4
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +27 -4
- package/es2021.en/jodit.min.js +2 -2
- 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/415.fat.min.js +1 -1
- package/es5/415.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +31 -4
- 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/esm/config.d.ts +1 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/selection/selection.js +11 -0
- package/esm/plugins/table/config.d.ts +1 -0
- package/esm/plugins/table/config.js +14 -2
- package/package.json +1 -1
- package/types/config.d.ts +1 -0
- package/types/plugins/table/config.d.ts +1 -0
package/es2018/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.6.
|
|
4
|
+
* Version: v4.6.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -8389,7 +8389,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8389
8389
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8390
8390
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8391
8391
|
*/
|
|
8392
|
-
const APP_VERSION = "4.6.
|
|
8392
|
+
const APP_VERSION = "4.6.16";
|
|
8393
8393
|
// prettier-ignore
|
|
8394
8394
|
const ES = "es2018";
|
|
8395
8395
|
const IS_ES_MODERN = true;
|
|
@@ -37812,12 +37812,23 @@ class Selection {
|
|
|
37812
37812
|
this.j.e.fire('beforeInsertNode', node);
|
|
37813
37813
|
if (sel && sel.rangeCount) {
|
|
37814
37814
|
const range = sel.getRangeAt(0);
|
|
37815
|
+
const { firstChild } = node;
|
|
37815
37816
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isOrContains(this.area, range.commonAncestorContainer)) {
|
|
37816
37817
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeInsertNode(range, node);
|
|
37817
37818
|
}
|
|
37818
37819
|
else {
|
|
37819
37820
|
this.area.appendChild(node);
|
|
37820
37821
|
}
|
|
37822
|
+
[
|
|
37823
|
+
() => firstChild === null || firstChild === void 0 ? void 0 : firstChild.previousSibling,
|
|
37824
|
+
() => firstChild === null || firstChild === void 0 ? void 0 : firstChild.previousSibling,
|
|
37825
|
+
() => { var _a; return (_a = firstChild === null || firstChild === void 0 ? void 0 : firstChild.previousSibling) === null || _a === void 0 ? void 0 : _a.lastChild; }
|
|
37826
|
+
].forEach(getChildNode => {
|
|
37827
|
+
const childNode = getChildNode();
|
|
37828
|
+
if (childNode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isEmptyTextNode(childNode)) {
|
|
37829
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(childNode);
|
|
37830
|
+
}
|
|
37831
|
+
});
|
|
37821
37832
|
}
|
|
37822
37833
|
else {
|
|
37823
37834
|
this.area.appendChild(node);
|
|
@@ -43048,6 +43059,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 312 312\
|
|
|
43048
43059
|
|
|
43049
43060
|
|
|
43050
43061
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
|
|
43062
|
+
splitBlockOnInsertTable: true,
|
|
43051
43063
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
43052
43064
|
useExtraClassesOptions: false
|
|
43053
43065
|
};
|
|
@@ -43168,8 +43180,19 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
43168
43180
|
else {
|
|
43169
43181
|
if (block) {
|
|
43170
43182
|
const fake = crt.text('\n');
|
|
43171
|
-
|
|
43172
|
-
|
|
43183
|
+
if (!editor.o.table.splitBlockOnInsertTable) {
|
|
43184
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
|
|
43185
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
|
|
43186
|
+
}
|
|
43187
|
+
else {
|
|
43188
|
+
const range = editor.s.range;
|
|
43189
|
+
range.collapse(false);
|
|
43190
|
+
range.insertNode(fake);
|
|
43191
|
+
range.collapse(false);
|
|
43192
|
+
editor.s.selectRange(range);
|
|
43193
|
+
const firstPart = editor.s.splitSelection(block, fake);
|
|
43194
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(firstPart, table);
|
|
43195
|
+
}
|
|
43173
43196
|
}
|
|
43174
43197
|
else {
|
|
43175
43198
|
editor.s.insertNode(table, false);
|