jodit-pro-react 5.5.33 → 5.5.35
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.
|
@@ -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.
|
|
196
|
+
APP_VERSION = "4.12.16";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -7010,6 +7010,9 @@ function removeExtraBr(jodit, node) {
|
|
|
7010
7010
|
if (!Dom.isTag(br, "br")) {
|
|
7011
7011
|
return;
|
|
7012
7012
|
}
|
|
7013
|
+
if (Dom.findNotEmptySibling(br, false)) {
|
|
7014
|
+
return;
|
|
7015
|
+
}
|
|
7013
7016
|
jodit.s.setCursorBefore(br);
|
|
7014
7017
|
Dom.safeRemove(br);
|
|
7015
7018
|
}
|
|
@@ -19191,6 +19194,9 @@ function getNextInlineSibling(sibling, backspace2, root) {
|
|
|
19191
19194
|
let nextSibling = Dom.sibling(sibling, backspace2);
|
|
19192
19195
|
if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
|
|
19193
19196
|
nextSibling = findMostNestedNeighbor(sibling, !backspace2, root, true);
|
|
19197
|
+
if (nextSibling && Dom.closest(sibling, "li", root) !== Dom.closest(nextSibling, "li", root)) {
|
|
19198
|
+
return null;
|
|
19199
|
+
}
|
|
19194
19200
|
}
|
|
19195
19201
|
return nextSibling;
|
|
19196
19202
|
}
|
|
@@ -28648,6 +28654,17 @@ var selectCells = class extends Plugin {
|
|
|
28648
28654
|
* Execute custom commands for table
|
|
28649
28655
|
*/
|
|
28650
28656
|
onExecCommand(command) {
|
|
28657
|
+
if (/^(delete|backspace)(word|sentence)?button$/.test(command) && this.__tableModule.getAllSelectedCells().length > 1) {
|
|
28658
|
+
const cells = this.__tableModule.getAllSelectedCells();
|
|
28659
|
+
cells.forEach((td) => {
|
|
28660
|
+
Dom.detach(td);
|
|
28661
|
+
td.appendChild(this.j.createInside.element("br"));
|
|
28662
|
+
});
|
|
28663
|
+
this.unselectCells();
|
|
28664
|
+
this.j.s.setCursorIn(cells[0]);
|
|
28665
|
+
this.j.synchronizeValues();
|
|
28666
|
+
return false;
|
|
28667
|
+
}
|
|
28651
28668
|
if (/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(command)) {
|
|
28652
28669
|
command = command.replace("table", "");
|
|
28653
28670
|
const cells = this.__tableModule.getAllSelectedCells();
|