jodit 4.0.0-beta.92 → 4.0.0-beta.95
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 +13 -5
- package/README.md +5 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +33 -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 +33 -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 +33 -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 +33 -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 +37 -10
- 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/core/view/view.d.ts +1 -0
- package/esm/core/view/view.js +4 -1
- package/esm/jodit.d.ts +2 -1
- package/esm/jodit.js +6 -0
- package/esm/modules/uploader/helpers/send.js +6 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.js +2 -2
- package/package.json +1 -1
- package/types/core/view/view.d.ts +1 -0
- package/types/jodit.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.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.95
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -3108,7 +3108,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3108
3108
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3109
3109
|
*/
|
|
3110
3110
|
|
|
3111
|
-
var APP_VERSION = "4.0.0-beta.
|
|
3111
|
+
var APP_VERSION = "4.0.0-beta.95";
|
|
3112
3112
|
// prettier-ignore
|
|
3113
3113
|
var ES = "es5";
|
|
3114
3114
|
var IS_ES_MODERN = false;
|
|
@@ -12540,7 +12540,7 @@ var Selection = /** @class */ (function () {
|
|
|
12540
12540
|
var range = this.createRange();
|
|
12541
12541
|
var start = node, last = node;
|
|
12542
12542
|
do {
|
|
12543
|
-
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(start)) {
|
|
12543
|
+
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)) {
|
|
12544
12544
|
break;
|
|
12545
12545
|
}
|
|
12546
12546
|
last = start;
|
|
@@ -12548,7 +12548,7 @@ var Selection = /** @class */ (function () {
|
|
|
12548
12548
|
} while (start);
|
|
12549
12549
|
if (!start) {
|
|
12550
12550
|
var fakeNode = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
|
|
12551
|
-
if (
|
|
12551
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(last, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
12552
12552
|
last.appendChild(fakeNode);
|
|
12553
12553
|
last = fakeNode;
|
|
12554
12554
|
}
|
|
@@ -12556,8 +12556,17 @@ var Selection = /** @class */ (function () {
|
|
|
12556
12556
|
start = last;
|
|
12557
12557
|
}
|
|
12558
12558
|
}
|
|
12559
|
-
|
|
12560
|
-
|
|
12559
|
+
var workElm = start || last;
|
|
12560
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
|
|
12561
|
+
range.selectNodeContents(workElm);
|
|
12562
|
+
range.collapse(inStart);
|
|
12563
|
+
}
|
|
12564
|
+
else {
|
|
12565
|
+
inStart || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(workElm, 'br')
|
|
12566
|
+
? range.setStartBefore(workElm)
|
|
12567
|
+
: range.setEndAfter(workElm);
|
|
12568
|
+
range.collapse(inStart);
|
|
12569
|
+
}
|
|
12561
12570
|
this.selectRange(range);
|
|
12562
12571
|
return last;
|
|
12563
12572
|
};
|
|
@@ -17870,11 +17879,14 @@ var View = /** @class */ (function (_super) {
|
|
|
17870
17879
|
});
|
|
17871
17880
|
Object.defineProperty(View.prototype, "message", {
|
|
17872
17881
|
get: function () {
|
|
17873
|
-
return
|
|
17882
|
+
return this.getMessageModule(this.container);
|
|
17874
17883
|
},
|
|
17875
17884
|
enumerable: false,
|
|
17876
17885
|
configurable: true
|
|
17877
17886
|
});
|
|
17887
|
+
View.prototype.getMessageModule = function (container) {
|
|
17888
|
+
return new jodit_modules_messages_messages__WEBPACK_IMPORTED_MODULE_9__/* .UIMessages */ .D(this, container);
|
|
17889
|
+
};
|
|
17878
17890
|
Object.defineProperty(View.prototype, "storage", {
|
|
17879
17891
|
/**
|
|
17880
17892
|
* Container for persistent set/get value
|
|
@@ -18400,6 +18412,13 @@ var Jodit = /** @class */ (function (_super) {
|
|
|
18400
18412
|
enumerable: false,
|
|
18401
18413
|
configurable: true
|
|
18402
18414
|
});
|
|
18415
|
+
Object.defineProperty(Jodit.prototype, "message", {
|
|
18416
|
+
get: function () {
|
|
18417
|
+
return this.getMessageModule(this.workplace);
|
|
18418
|
+
},
|
|
18419
|
+
enumerable: false,
|
|
18420
|
+
configurable: true
|
|
18421
|
+
});
|
|
18403
18422
|
Object.defineProperty(Jodit.prototype, "statusbar", {
|
|
18404
18423
|
/**
|
|
18405
18424
|
* Statusbar module
|
|
@@ -19497,6 +19516,9 @@ var Jodit = /** @class */ (function (_super) {
|
|
|
19497
19516
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
19498
19517
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
19499
19518
|
], Jodit.prototype, "createInside", null);
|
|
19519
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
19520
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
19521
|
+
], Jodit.prototype, "message", null);
|
|
19500
19522
|
(0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
|
|
19501
19523
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
|
|
19502
19524
|
], Jodit.prototype, "s", null);
|
|
@@ -26430,7 +26452,12 @@ function send(uploader, data) {
|
|
|
26430
26452
|
.send()
|
|
26431
26453
|
.then(function (resp) { return resp.json(); })
|
|
26432
26454
|
.catch(function (error) {
|
|
26433
|
-
|
|
26455
|
+
return {
|
|
26456
|
+
success: false,
|
|
26457
|
+
data: {
|
|
26458
|
+
messages: [error]
|
|
26459
|
+
}
|
|
26460
|
+
};
|
|
26434
26461
|
})
|
|
26435
26462
|
.finally(function () {
|
|
26436
26463
|
ajax.destruct();
|
|
@@ -43828,10 +43855,10 @@ var wrapNodes = /** @class */ (function (_super) {
|
|
|
43828
43855
|
return;
|
|
43829
43856
|
}
|
|
43830
43857
|
jodit.e
|
|
43831
|
-
.on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn', this.preprocessInput, {
|
|
43858
|
+
.on('drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn', this.preprocessInput, {
|
|
43832
43859
|
top: true
|
|
43833
43860
|
})
|
|
43834
|
-
.on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn', this.postProcessSetEditorValue);
|
|
43861
|
+
.on('afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn', this.postProcessSetEditorValue);
|
|
43835
43862
|
};
|
|
43836
43863
|
/** @override **/
|
|
43837
43864
|
wrapNodes.prototype.beforeDestruct = function (jodit) {
|
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.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.95
|
|
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.0-beta.
|
|
11
|
+
* Version: v4.0.0-beta.95
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|