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/es5/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
|
*/
|
|
@@ -8775,7 +8775,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8775
8775
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8776
8776
|
*/
|
|
8777
8777
|
|
|
8778
|
-
var APP_VERSION = "4.6.
|
|
8778
|
+
var APP_VERSION = "4.6.16";
|
|
8779
8779
|
// prettier-ignore
|
|
8780
8780
|
var ES = "es5";
|
|
8781
8781
|
var IS_ES_MODERN = false;
|
|
@@ -39179,12 +39179,27 @@ var Selection = /** @class */ (function () {
|
|
|
39179
39179
|
_this.j.e.fire('beforeInsertNode', node);
|
|
39180
39180
|
if (sel && sel.rangeCount) {
|
|
39181
39181
|
var range = sel.getRangeAt(0);
|
|
39182
|
+
var firstChild_1 = node.firstChild;
|
|
39182
39183
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isOrContains(_this.area, range.commonAncestorContainer)) {
|
|
39183
39184
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeInsertNode(range, node);
|
|
39184
39185
|
}
|
|
39185
39186
|
else {
|
|
39186
39187
|
_this.area.appendChild(node);
|
|
39187
39188
|
}
|
|
39189
|
+
[
|
|
39190
|
+
function () {
|
|
39191
|
+
return firstChild_1 === null || firstChild_1 === void 0 ? void 0 : firstChild_1.previousSibling;
|
|
39192
|
+
},
|
|
39193
|
+
function () {
|
|
39194
|
+
return firstChild_1 === null || firstChild_1 === void 0 ? void 0 : firstChild_1.previousSibling;
|
|
39195
|
+
},
|
|
39196
|
+
function () { var _a; return (_a = firstChild_1 === null || firstChild_1 === void 0 ? void 0 : firstChild_1.previousSibling) === null || _a === void 0 ? void 0 : _a.lastChild; }
|
|
39197
|
+
].forEach(function (getChildNode) {
|
|
39198
|
+
var childNode = getChildNode();
|
|
39199
|
+
if (childNode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.isEmptyTextNode(childNode)) {
|
|
39200
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.safeRemove(childNode);
|
|
39201
|
+
}
|
|
39202
|
+
});
|
|
39188
39203
|
}
|
|
39189
39204
|
else {
|
|
39190
39205
|
_this.area.appendChild(node);
|
|
@@ -44719,6 +44734,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 312 312\
|
|
|
44719
44734
|
|
|
44720
44735
|
|
|
44721
44736
|
jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
|
|
44737
|
+
splitBlockOnInsertTable: true,
|
|
44722
44738
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
44723
44739
|
useExtraClassesOptions: false
|
|
44724
44740
|
};
|
|
@@ -44839,8 +44855,19 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.tab
|
|
|
44839
44855
|
else {
|
|
44840
44856
|
if (block) {
|
|
44841
44857
|
var fake = crt.text('\n');
|
|
44842
|
-
|
|
44843
|
-
|
|
44858
|
+
if (!editor.o.table.splitBlockOnInsertTable) {
|
|
44859
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(block, fake);
|
|
44860
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(fake, table);
|
|
44861
|
+
}
|
|
44862
|
+
else {
|
|
44863
|
+
var range = editor.s.range;
|
|
44864
|
+
range.collapse(false);
|
|
44865
|
+
range.insertNode(fake);
|
|
44866
|
+
range.collapse(false);
|
|
44867
|
+
editor.s.selectRange(range);
|
|
44868
|
+
var firstPart = editor.s.splitSelection(block, fake);
|
|
44869
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(firstPart, table);
|
|
44870
|
+
}
|
|
44844
44871
|
}
|
|
44845
44872
|
else {
|
|
44846
44873
|
editor.s.insertNode(table, false);
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.6.
|
|
11
|
+
* Version: v4.6.16
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|