jodit 4.9.16 → 4.10.1
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 +24 -0
- package/es2015/jodit.css +8 -4
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +60 -47
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +5 -5
- 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.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +5 -5
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +8 -4
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +6 -6
- package/es2021/jodit.js +60 -47
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +6 -6
- 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 +8 -4
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +6 -6
- package/es2021.en/jodit.js +60 -47
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +11 -11
- 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/jodit.css +11 -5
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +115 -98
- package/es5/jodit.min.css +3 -3
- 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/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/modules/table/table.js +2 -3
- package/esm/modules/widget/tabs/tabs.js +1 -1
- package/esm/plugins/inline-popup/config/config.js +9 -0
- package/esm/plugins/inline-popup/config/items/cells.js +1 -1
- package/esm/plugins/select-cells/select-cells.js +12 -8
- package/package.json +1 -1
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.
|
|
4
|
+
* Version: v4.10.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1067,15 +1067,17 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
|
|
|
1067
1067
|
break;
|
|
1068
1068
|
case 'bincolumn':
|
|
1069
1069
|
{
|
|
1070
|
-
const columnsSet = new Set()
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1070
|
+
const columnsSet = new Set();
|
|
1071
|
+
const columns = [];
|
|
1072
|
+
cells.forEach((td)=>{
|
|
1073
|
+
const [, col] = this.__tableModule.formalCoordinate(table, td);
|
|
1074
|
+
if (!columnsSet.has(col)) {
|
|
1075
|
+
columns.push(col);
|
|
1076
|
+
columnsSet.add(col);
|
|
1074
1077
|
}
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
this.__tableModule.removeColumn(table, td.cellIndex);
|
|
1078
|
+
});
|
|
1079
|
+
columns.sort((a, b)=>b - a).forEach((col)=>{
|
|
1080
|
+
this.__tableModule.removeColumn(table, col);
|
|
1079
1081
|
});
|
|
1080
1082
|
}
|
|
1081
1083
|
break;
|
|
@@ -8292,7 +8294,7 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
8292
8294
|
tooltip: 'Add row'
|
|
8293
8295
|
},
|
|
8294
8296
|
{
|
|
8295
|
-
name: '
|
|
8297
|
+
name: 'deleteTable',
|
|
8296
8298
|
icon: 'bin',
|
|
8297
8299
|
list: {
|
|
8298
8300
|
tablebin: 'Delete table',
|
|
@@ -35110,7 +35112,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35110
35112
|
* ```
|
|
35111
35113
|
* @packageDocumentation
|
|
35112
35114
|
* @module constants
|
|
35113
|
-
*/ const APP_VERSION = "4.
|
|
35115
|
+
*/ const APP_VERSION = "4.10.1";
|
|
35114
35116
|
// prettier-ignore
|
|
35115
35117
|
const ES = "es2015";
|
|
35116
35118
|
const IS_ES_MODERN = true;
|
|
@@ -37404,7 +37406,7 @@ function buildData(uploader, data) {
|
|
|
37404
37406
|
if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_2__.isFunction)(content)) {
|
|
37405
37407
|
tab.appendChild(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(content, jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIElement) ? content.container : content);
|
|
37406
37408
|
} else {
|
|
37407
|
-
tab.
|
|
37409
|
+
tab.classList.add('jodit-tab_empty');
|
|
37408
37410
|
}
|
|
37409
37411
|
tabBox.appendChild(tab);
|
|
37410
37412
|
button.onAction(()=>{
|
|
@@ -37538,27 +37540,28 @@ function buildData(uploader, data) {
|
|
|
37538
37540
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
37539
37541
|
|
|
37540
37542
|
"use strict";
|
|
37541
|
-
/* harmony import */ var
|
|
37542
|
-
/* harmony import */ var
|
|
37543
|
-
/* harmony import */ var
|
|
37544
|
-
/* harmony import */ var
|
|
37545
|
-
/* harmony import */ var
|
|
37546
|
-
/* harmony import */ var
|
|
37547
|
-
/* harmony import */ var
|
|
37548
|
-
/* harmony import */ var
|
|
37549
|
-
/* harmony import */ var
|
|
37550
|
-
/* harmony import */ var
|
|
37551
|
-
/* harmony import */ var
|
|
37552
|
-
/* harmony import */ var
|
|
37553
|
-
/* harmony import */ var
|
|
37554
|
-
/* harmony import */ var
|
|
37555
|
-
/* harmony import */ var
|
|
37556
|
-
/* harmony import */ var
|
|
37557
|
-
/* harmony import */ var
|
|
37558
|
-
/* harmony import */ var
|
|
37559
|
-
/* harmony import */ var
|
|
37560
|
-
/* harmony import */ var
|
|
37561
|
-
/* harmony import */ var
|
|
37543
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28686);
|
|
37544
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29434);
|
|
37545
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5266);
|
|
37546
|
+
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70235);
|
|
37547
|
+
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17849);
|
|
37548
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(466);
|
|
37549
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75711);
|
|
37550
|
+
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59399);
|
|
37551
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38681);
|
|
37552
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
37553
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(64637);
|
|
37554
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
37555
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(94190);
|
|
37556
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
37557
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(51957);
|
|
37558
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_11__);
|
|
37559
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(71940);
|
|
37560
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_12__);
|
|
37561
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(43218);
|
|
37562
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_13__);
|
|
37563
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(48007);
|
|
37564
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_14__);
|
|
37562
37565
|
/*!
|
|
37563
37566
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37564
37567
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37579,21 +37582,30 @@ function buildData(uploader, data) {
|
|
|
37579
37582
|
|
|
37580
37583
|
|
|
37581
37584
|
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37585
|
-
|
|
37585
|
+
|
|
37586
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
37587
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
37588
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableFor = [];
|
|
37589
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
37586
37590
|
'source'
|
|
37587
37591
|
];
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37593
|
-
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
|
|
37592
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8___default())).set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9___default())).set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_10___default())).set('th', (jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_13___default())).set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_11___default())).set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_12___default())).set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_14___default()));
|
|
37593
|
+
// Register cell popup buttons as global controls so they can be
|
|
37594
|
+
// referenced by name in custom popup configurations.
|
|
37595
|
+
// Skip buttons that already exist in controls (e.g. 'align' from justify plugin).
|
|
37596
|
+
_items_cells__WEBPACK_IMPORTED_MODULE_4__["default"].forEach((item)=>{
|
|
37597
|
+
if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isString)(item) && item.name && !jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls[item.name]) {
|
|
37598
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls[item.name] = item;
|
|
37599
|
+
}
|
|
37600
|
+
});
|
|
37601
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.popup = {
|
|
37602
|
+
a: _items_a__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
37603
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
37604
|
+
cells: _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
37605
|
+
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
37606
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
37607
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
37608
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
37597
37609
|
selection: [
|
|
37598
37610
|
'bold',
|
|
37599
37611
|
'underline',
|
|
@@ -43061,7 +43073,8 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewCompon
|
|
|
43061
43073
|
if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.isCell(selectedCell.previousElementSibling)) {
|
|
43062
43074
|
return this.appendColumn(table, selectedCell.previousElementSibling, true);
|
|
43063
43075
|
}
|
|
43064
|
-
const
|
|
43076
|
+
const [, formalCol] = Table.__formalCoordinate(table, selectedCell, insertAfter);
|
|
43077
|
+
const columnIndex = formalCol;
|
|
43065
43078
|
const newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
|
|
43066
43079
|
for(let i = 0; i < box.length;){
|
|
43067
43080
|
const cells = box[i];
|