jodit 4.2.6 → 4.2.9
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 +23 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +47 -38
- 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 +47 -38
- 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 +44 -38
- 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 +44 -38
- 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 +47 -40
- 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/ui/group/list.js +2 -1
- package/esm/core/ui/popup/popup.js +1 -1
- package/esm/plugins/color/config.js +37 -1
- package/esm/plugins/inline-popup/config/items/cells.js +1 -31
- package/esm/types/toolbar.d.ts +1 -0
- package/package.json +1 -1
- package/types/types/toolbar.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.2.
|
|
4
|
+
* Version: v4.2.9
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -3127,7 +3127,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3127
3127
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3128
3128
|
*/
|
|
3129
3129
|
|
|
3130
|
-
var APP_VERSION = "4.2.
|
|
3130
|
+
var APP_VERSION = "4.2.9";
|
|
3131
3131
|
// prettier-ignore
|
|
3132
3132
|
var ES = "es5";
|
|
3133
3133
|
var IS_ES_MODERN = false;
|
|
@@ -16771,7 +16771,9 @@ var UIList = /** @class */ (function (_super) {
|
|
|
16771
16771
|
}
|
|
16772
16772
|
};
|
|
16773
16773
|
var isNotRemoved = function (b) {
|
|
16774
|
-
|
|
16774
|
+
var _a;
|
|
16775
|
+
return !_this.removeButtons.includes(b.name) &&
|
|
16776
|
+
(!b.isVisible || ((_a = b.isVisible) === null || _a === void 0 ? void 0 : _a.call(b, _this.j, b)));
|
|
16775
16777
|
};
|
|
16776
16778
|
items.forEach(function (item) {
|
|
16777
16779
|
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_10__/* .isButtonGroup */ .i)(item)) {
|
|
@@ -17480,7 +17482,7 @@ var Popup = /** @class */ (function (_super) {
|
|
|
17480
17482
|
}
|
|
17481
17483
|
return strategy;
|
|
17482
17484
|
};
|
|
17483
|
-
// Try find match position inside Jodit.container
|
|
17485
|
+
// Try to find match position inside Jodit.container
|
|
17484
17486
|
var strategy = getMatchStrategy((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.position)(this.j.container, this.j));
|
|
17485
17487
|
// If not found or is not inside window view
|
|
17486
17488
|
if (!strategy || !Popup.boxInView(getPointByStrategy(strategy), view)) {
|
|
@@ -30294,7 +30296,45 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
30294
30296
|
|
|
30295
30297
|
|
|
30296
30298
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
30299
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
|
|
30300
|
+
isVisible: function (editor) {
|
|
30301
|
+
return !editor.o.disablePlugins.includes('color');
|
|
30302
|
+
},
|
|
30303
|
+
icon: 'brush',
|
|
30304
|
+
popup: function (editor, _, close) {
|
|
30305
|
+
if (!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(editor)) {
|
|
30306
|
+
return;
|
|
30307
|
+
}
|
|
30308
|
+
var tableModule = editor.getInstance('Table', editor.o), selected = tableModule.getAllSelectedCells();
|
|
30309
|
+
if (!selected.length) {
|
|
30310
|
+
return false;
|
|
30311
|
+
}
|
|
30312
|
+
var makeColorPicker = function (key) {
|
|
30313
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
|
|
30314
|
+
selected.forEach(function (cell) {
|
|
30315
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
|
|
30316
|
+
});
|
|
30317
|
+
editor.lock();
|
|
30318
|
+
editor.synchronizeValues();
|
|
30319
|
+
close();
|
|
30320
|
+
editor.unlock();
|
|
30321
|
+
}, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
|
|
30322
|
+
};
|
|
30323
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
|
|
30324
|
+
{
|
|
30325
|
+
name: 'Background',
|
|
30326
|
+
content: makeColorPicker('background-color')
|
|
30327
|
+
},
|
|
30328
|
+
{ name: 'Text', content: makeColorPicker('color') },
|
|
30329
|
+
{ name: 'Border', content: makeColorPicker('border-color') }
|
|
30330
|
+
]);
|
|
30331
|
+
},
|
|
30332
|
+
tooltip: 'Background'
|
|
30333
|
+
};
|
|
30297
30334
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
|
|
30335
|
+
isVisible: function (editor) {
|
|
30336
|
+
return !editor.o.disablePlugins.includes('color');
|
|
30337
|
+
},
|
|
30298
30338
|
update: function (editor, button) {
|
|
30299
30339
|
var color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
|
|
30300
30340
|
var update = function (key, value) {
|
|
@@ -35719,8 +35759,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
|
|
|
35719
35759
|
|
|
35720
35760
|
"use strict";
|
|
35721
35761
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9823);
|
|
35722
|
-
/* harmony import */ var
|
|
35723
|
-
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16116);
|
|
35762
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38322);
|
|
35724
35763
|
/*!
|
|
35725
35764
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35726
35765
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35728,45 +35767,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
|
|
|
35728
35767
|
*/
|
|
35729
35768
|
|
|
35730
35769
|
|
|
35731
|
-
|
|
35732
35770
|
var cmd = function (control) {
|
|
35733
35771
|
return control.args && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(control.args[0])
|
|
35734
35772
|
? control.args[0].toLowerCase()
|
|
35735
35773
|
: '';
|
|
35736
35774
|
};
|
|
35737
35775
|
/* harmony default export */ __webpack_exports__.A = ([
|
|
35738
|
-
|
|
35739
|
-
name: 'brush',
|
|
35740
|
-
popup: function (editor, _, close) {
|
|
35741
|
-
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isJoditObject */ .y0)(editor)) {
|
|
35742
|
-
return;
|
|
35743
|
-
}
|
|
35744
|
-
var tableModule = editor.getInstance('Table', editor.o), selected = tableModule.getAllSelectedCells();
|
|
35745
|
-
if (!selected.length) {
|
|
35746
|
-
return false;
|
|
35747
|
-
}
|
|
35748
|
-
var makeColorPicker = function (key) {
|
|
35749
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_1__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
|
|
35750
|
-
selected.forEach(function (cell) {
|
|
35751
|
-
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(cell, key, value);
|
|
35752
|
-
});
|
|
35753
|
-
editor.lock();
|
|
35754
|
-
editor.synchronizeValues();
|
|
35755
|
-
close();
|
|
35756
|
-
editor.unlock();
|
|
35757
|
-
}, (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(selected[0], key));
|
|
35758
|
-
};
|
|
35759
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_1__/* .TabsWidget */ .Zg)(editor, [
|
|
35760
|
-
{
|
|
35761
|
-
name: 'Background',
|
|
35762
|
-
content: makeColorPicker('background-color')
|
|
35763
|
-
},
|
|
35764
|
-
{ name: 'Text', content: makeColorPicker('color') },
|
|
35765
|
-
{ name: 'Border', content: makeColorPicker('border-color') }
|
|
35766
|
-
]);
|
|
35767
|
-
},
|
|
35768
|
-
tooltip: 'Background'
|
|
35769
|
-
},
|
|
35776
|
+
'brushCell',
|
|
35770
35777
|
{
|
|
35771
35778
|
name: 'valign',
|
|
35772
35779
|
list: ['Top', 'Middle', 'Bottom', 'Normal'],
|
|
@@ -35778,7 +35785,7 @@ var cmd = function (control) {
|
|
|
35778
35785
|
.getInstance('Table', editor.o)
|
|
35779
35786
|
.getAllSelectedCells()
|
|
35780
35787
|
.forEach(function (cell) {
|
|
35781
|
-
(0,
|
|
35788
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_1__/* .css */ .A)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
35782
35789
|
});
|
|
35783
35790
|
},
|
|
35784
35791
|
tooltip: 'Vertical align'
|
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.2.
|
|
4
|
+
* Version: v4.2.9
|
|
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.2.
|
|
11
|
+
* Version: v4.2.9
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|