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/es2015/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
|
*/
|
|
@@ -1736,7 +1736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1736
1736
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1737
1737
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1738
1738
|
*/
|
|
1739
|
-
const APP_VERSION = "4.2.
|
|
1739
|
+
const APP_VERSION = "4.2.9";
|
|
1740
1740
|
// prettier-ignore
|
|
1741
1741
|
const ES = "es2015";
|
|
1742
1742
|
const IS_ES_MODERN = true;
|
|
@@ -14753,7 +14753,11 @@ let UIList = class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
14753
14753
|
group.append(elm);
|
|
14754
14754
|
}
|
|
14755
14755
|
};
|
|
14756
|
-
const isNotRemoved = (b) =>
|
|
14756
|
+
const isNotRemoved = (b) => {
|
|
14757
|
+
var _a;
|
|
14758
|
+
return !this.removeButtons.includes(b.name) &&
|
|
14759
|
+
(!b.isVisible || ((_a = b.isVisible) === null || _a === void 0 ? void 0 : _a.call(b, this.j, b)));
|
|
14760
|
+
};
|
|
14757
14761
|
items.forEach(item => {
|
|
14758
14762
|
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item)) {
|
|
14759
14763
|
const buttons = item.buttons.filter(b => b);
|
|
@@ -15418,7 +15422,7 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_7__/* .UI
|
|
|
15418
15422
|
}
|
|
15419
15423
|
return strategy;
|
|
15420
15424
|
};
|
|
15421
|
-
// Try find match position inside Jodit.container
|
|
15425
|
+
// Try to find match position inside Jodit.container
|
|
15422
15426
|
let strategy = getMatchStrategy((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.position)(this.j.container, this.j));
|
|
15423
15427
|
// If not found or is not inside window view
|
|
15424
15428
|
if (!strategy || !Popup.boxInView(getPointByStrategy(strategy), view)) {
|
|
@@ -27747,7 +27751,43 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
|
|
|
27747
27751
|
|
|
27748
27752
|
|
|
27749
27753
|
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
27754
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
|
|
27755
|
+
isVisible: (editor) => {
|
|
27756
|
+
return !editor.o.disablePlugins.includes('color');
|
|
27757
|
+
},
|
|
27758
|
+
icon: 'brush',
|
|
27759
|
+
popup: (editor, _, close) => {
|
|
27760
|
+
if (!(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(editor)) {
|
|
27761
|
+
return;
|
|
27762
|
+
}
|
|
27763
|
+
const tableModule = editor.getInstance('Table', editor.o), selected = tableModule.getAllSelectedCells();
|
|
27764
|
+
if (!selected.length) {
|
|
27765
|
+
return false;
|
|
27766
|
+
}
|
|
27767
|
+
const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
27768
|
+
selected.forEach(cell => {
|
|
27769
|
+
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
|
|
27770
|
+
});
|
|
27771
|
+
editor.lock();
|
|
27772
|
+
editor.synchronizeValues();
|
|
27773
|
+
close();
|
|
27774
|
+
editor.unlock();
|
|
27775
|
+
}, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
|
|
27776
|
+
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
|
|
27777
|
+
{
|
|
27778
|
+
name: 'Background',
|
|
27779
|
+
content: makeColorPicker('background-color')
|
|
27780
|
+
},
|
|
27781
|
+
{ name: 'Text', content: makeColorPicker('color') },
|
|
27782
|
+
{ name: 'Border', content: makeColorPicker('border-color') }
|
|
27783
|
+
]);
|
|
27784
|
+
},
|
|
27785
|
+
tooltip: 'Background'
|
|
27786
|
+
};
|
|
27750
27787
|
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
|
|
27788
|
+
isVisible: (editor) => {
|
|
27789
|
+
return !editor.o.disablePlugins.includes('color');
|
|
27790
|
+
},
|
|
27751
27791
|
update(editor, button) {
|
|
27752
27792
|
const color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
|
|
27753
27793
|
const update = (key, value) => {
|
|
@@ -33059,8 +33099,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
|
|
|
33059
33099
|
|
|
33060
33100
|
"use strict";
|
|
33061
33101
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9823);
|
|
33062
|
-
/* harmony import */ var
|
|
33063
|
-
/* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16116);
|
|
33102
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38322);
|
|
33064
33103
|
/*!
|
|
33065
33104
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33066
33105
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33068,41 +33107,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
|
|
|
33068
33107
|
*/
|
|
33069
33108
|
|
|
33070
33109
|
|
|
33071
|
-
|
|
33072
33110
|
const cmd = (control) => control.args && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(control.args[0])
|
|
33073
33111
|
? control.args[0].toLowerCase()
|
|
33074
33112
|
: '';
|
|
33075
33113
|
/* harmony default export */ __webpack_exports__.A = ([
|
|
33076
|
-
|
|
33077
|
-
name: 'brush',
|
|
33078
|
-
popup: (editor, _, close) => {
|
|
33079
|
-
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isJoditObject */ .y0)(editor)) {
|
|
33080
|
-
return;
|
|
33081
|
-
}
|
|
33082
|
-
const tableModule = editor.getInstance('Table', editor.o), selected = tableModule.getAllSelectedCells();
|
|
33083
|
-
if (!selected.length) {
|
|
33084
|
-
return false;
|
|
33085
|
-
}
|
|
33086
|
-
const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_1__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
|
|
33087
|
-
selected.forEach(cell => {
|
|
33088
|
-
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(cell, key, value);
|
|
33089
|
-
});
|
|
33090
|
-
editor.lock();
|
|
33091
|
-
editor.synchronizeValues();
|
|
33092
|
-
close();
|
|
33093
|
-
editor.unlock();
|
|
33094
|
-
}, (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(selected[0], key));
|
|
33095
|
-
return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_1__/* .TabsWidget */ .Zg)(editor, [
|
|
33096
|
-
{
|
|
33097
|
-
name: 'Background',
|
|
33098
|
-
content: makeColorPicker('background-color')
|
|
33099
|
-
},
|
|
33100
|
-
{ name: 'Text', content: makeColorPicker('color') },
|
|
33101
|
-
{ name: 'Border', content: makeColorPicker('border-color') }
|
|
33102
|
-
]);
|
|
33103
|
-
},
|
|
33104
|
-
tooltip: 'Background'
|
|
33105
|
-
},
|
|
33114
|
+
'brushCell',
|
|
33106
33115
|
{
|
|
33107
33116
|
name: 'valign',
|
|
33108
33117
|
list: ['Top', 'Middle', 'Bottom', 'Normal'],
|
|
@@ -33113,7 +33122,7 @@ const cmd = (control) => control.args && (0,jodit_core_helpers_checker__WEBPACK_
|
|
|
33113
33122
|
.getInstance('Table', editor.o)
|
|
33114
33123
|
.getAllSelectedCells()
|
|
33115
33124
|
.forEach((cell) => {
|
|
33116
|
-
(0,
|
|
33125
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_1__/* .css */ .A)(cell, 'vertical-align', command === 'normal' ? '' : command);
|
|
33117
33126
|
});
|
|
33118
33127
|
},
|
|
33119
33128
|
tooltip: 'Vertical align'
|