jodit-pro-react 5.5.33 → 5.5.34

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JoditEditor_default
3
- } from "./chunk-2A3MK2L6.mjs";
3
+ } from "./chunk-JFMOU3QL.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
193
193
  var init_constants = __esm({
194
194
  "node_modules/jodit/esm/core/constants.js"() {
195
195
  "use strict";
196
- APP_VERSION = "4.12.13";
196
+ APP_VERSION = "4.12.15";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -19191,6 +19191,9 @@ function getNextInlineSibling(sibling, backspace2, root) {
19191
19191
  let nextSibling = Dom.sibling(sibling, backspace2);
19192
19192
  if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
19193
19193
  nextSibling = findMostNestedNeighbor(sibling, !backspace2, root, true);
19194
+ if (nextSibling && Dom.closest(sibling, "li", root) !== Dom.closest(nextSibling, "li", root)) {
19195
+ return null;
19196
+ }
19194
19197
  }
19195
19198
  return nextSibling;
19196
19199
  }
@@ -28648,6 +28651,17 @@ var selectCells = class extends Plugin {
28648
28651
  * Execute custom commands for table
28649
28652
  */
28650
28653
  onExecCommand(command) {
28654
+ if (/^(delete|backspace)(word|sentence)?button$/.test(command) && this.__tableModule.getAllSelectedCells().length > 1) {
28655
+ const cells = this.__tableModule.getAllSelectedCells();
28656
+ cells.forEach((td) => {
28657
+ Dom.detach(td);
28658
+ td.appendChild(this.j.createInside.element("br"));
28659
+ });
28660
+ this.unselectCells();
28661
+ this.j.s.setCursorIn(cells[0]);
28662
+ this.j.synchronizeValues();
28663
+ return false;
28664
+ }
28651
28665
  if (/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(command)) {
28652
28666
  command = command.replace("table", "");
28653
28667
  const cells = this.__tableModule.getAllSelectedCells();
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-2A3MK2L6.mjs";
5
+ } from "./chunk-JFMOU3QL.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;