jodit 4.9.16 → 4.9.19

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/es2015/jodit.css +8 -4
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +4 -4
  5. package/es2015/jodit.js +15 -12
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +4 -4
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +4 -4
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +4 -4
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +8 -4
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +5 -5
  23. package/es2021/jodit.js +15 -12
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +5 -5
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +8 -4
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +5 -5
  35. package/es2021.en/jodit.js +15 -12
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +10 -10
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +11 -5
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +70 -63
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/modules/table/table.js +2 -3
  61. package/esm/modules/widget/tabs/tabs.js +1 -1
  62. package/esm/plugins/select-cells/select-cells.js +12 -8
  63. package/package.json +1 -1
@@ -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.9.16
4
+ * Version: v4.9.19
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -998,15 +998,17 @@ class selectCells extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin
998
998
  break;
999
999
  case 'bincolumn':
1000
1000
  {
1001
- const columnsSet = new Set(), columns = cells.reduce((acc, td)=>{
1002
- if (!columnsSet.has(td.cellIndex)) {
1003
- acc.push(td);
1004
- columnsSet.add(td.cellIndex);
1001
+ const columnsSet = new Set();
1002
+ const columns = [];
1003
+ cells.forEach((td)=>{
1004
+ const [, col] = this.__tableModule.formalCoordinate(table, td);
1005
+ if (!columnsSet.has(col)) {
1006
+ columns.push(col);
1007
+ columnsSet.add(col);
1005
1008
  }
1006
- return acc;
1007
- }, []);
1008
- columns.forEach((td)=>{
1009
- this.__tableModule.removeColumn(table, td.cellIndex);
1009
+ });
1010
+ columns.sort((a, b)=>b - a).forEach((col)=>{
1011
+ this.__tableModule.removeColumn(table, col);
1010
1012
  });
1011
1013
  }
1012
1014
  break;
@@ -33524,7 +33526,7 @@ __webpack_require__.r(__webpack_exports__);
33524
33526
  * ```
33525
33527
  * @packageDocumentation
33526
33528
  * @module constants
33527
- */ const APP_VERSION = "4.9.16";
33529
+ */ const APP_VERSION = "4.9.19";
33528
33530
  // prettier-ignore
33529
33531
  const ES = "es2021";
33530
33532
  const IS_ES_MODERN = true;
@@ -35659,7 +35661,7 @@ function buildData(uploader, data) {
35659
35661
  if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_2__.isFunction)(content)) {
35660
35662
  tab.appendChild(jodit_core_component__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(content, jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIElement) ? content.container : content);
35661
35663
  } else {
35662
- tab.appendChild(jodit.c.div('jodit-tab_empty'));
35664
+ tab.classList.add('jodit-tab_empty');
35663
35665
  }
35664
35666
  tabBox.appendChild(tab);
35665
35667
  button.onAction(()=>{
@@ -41046,7 +41048,8 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewCompon
41046
41048
  if (!insertAfter && jodit_core_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.isCell(selectedCell.previousElementSibling)) {
41047
41049
  return this.appendColumn(table, selectedCell.previousElementSibling, true);
41048
41050
  }
41049
- const columnIndex = insertAfter ? selectedCell.cellIndex + ((selectedCell.colSpan || 1) - 1) : selectedCell.cellIndex;
41051
+ const [, formalCol] = Table.__formalCoordinate(table, selectedCell, insertAfter);
41052
+ const columnIndex = formalCol;
41050
41053
  const newColumnIndex = insertAfter ? columnIndex + 1 : columnIndex;
41051
41054
  for(let i = 0; i < box.length;){
41052
41055
  const cells = box[i];