jodit-pro-react 5.5.32 → 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-5G4N6VRR.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.12";
196
+ APP_VERSION = "4.12.15";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -19072,6 +19072,11 @@ function checkJoinNeighbors(jodit, fakeNode, backspace2) {
19072
19072
  }
19073
19073
  if (Dom.isElement(mainClosestBox) && Dom.isContentEditable(mainClosestBox, jodit.editor)) {
19074
19074
  const sibling = Dom.findNotEmptySibling(mainClosestBox, backspace2);
19075
+ if (Dom.isTag(sibling, "br")) {
19076
+ Dom.safeRemove(sibling);
19077
+ jodit.s.setCursorBefore(fakeNode);
19078
+ return true;
19079
+ }
19075
19080
  if (sibling && (checkMoveListContent(jodit, mainClosestBox, sibling, backspace2) || moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace2))) {
19076
19081
  jodit.s.setCursorBefore(fakeNode);
19077
19082
  return true;
@@ -19186,6 +19191,9 @@ function getNextInlineSibling(sibling, backspace2, root) {
19186
19191
  let nextSibling = Dom.sibling(sibling, backspace2);
19187
19192
  if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
19188
19193
  nextSibling = findMostNestedNeighbor(sibling, !backspace2, root, true);
19194
+ if (nextSibling && Dom.closest(sibling, "li", root) !== Dom.closest(nextSibling, "li", root)) {
19195
+ return null;
19196
+ }
19189
19197
  }
19190
19198
  return nextSibling;
19191
19199
  }
@@ -28643,6 +28651,17 @@ var selectCells = class extends Plugin {
28643
28651
  * Execute custom commands for table
28644
28652
  */
28645
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
+ }
28646
28665
  if (/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(command)) {
28647
28666
  command = command.replace("table", "");
28648
28667
  const cells = this.__tableModule.getAllSelectedCells();
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-5G4N6VRR.mjs";
5
+ } from "./chunk-JFMOU3QL.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;