jodit-pro-react 5.6.10 → 5.6.11
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.15.
|
|
196
|
+
APP_VERSION = "4.15.2";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -23499,9 +23499,9 @@ init_plugin();
|
|
|
23499
23499
|
init_constants();
|
|
23500
23500
|
init_dom();
|
|
23501
23501
|
init_scroll_into_view();
|
|
23502
|
-
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
23502
|
+
function checkBR(fake, jodit, shiftKeyPressed, block) {
|
|
23503
23503
|
const isMultiLineBlock = Boolean(Dom.closest(fake, ["pre", "blockquote"], jodit.editor));
|
|
23504
|
-
const isCell = !isMultiLineBlock && Dom.closest(fake, ["td", "th"], jodit.editor);
|
|
23504
|
+
const isCell = !isMultiLineBlock && (block ? Dom.isCell(block) : Boolean(Dom.closest(fake, ["td", "th"], jodit.editor)));
|
|
23505
23505
|
const isBRMode = jodit.o.enter.toLowerCase() === BR.toLowerCase();
|
|
23506
23506
|
if (isBRMode || isCell || shiftKeyPressed && !isMultiLineBlock || !shiftKeyPressed && isMultiLineBlock) {
|
|
23507
23507
|
if (isMultiLineBlock && checkSeveralBR(fake)) {
|
|
@@ -23734,7 +23734,7 @@ var enter = class extends Plugin {
|
|
|
23734
23734
|
moveCursorOutFromSpecialTags(jodit, fake, ["a"]);
|
|
23735
23735
|
let block = getBlockWrapper(fake, jodit);
|
|
23736
23736
|
const isLi = Dom.isLeaf(block);
|
|
23737
|
-
if ((!isLi || (event === null || event === void 0 ? void 0 : event.shiftKey)) && checkBR(fake, jodit, event === null || event === void 0 ? void 0 : event.shiftKey)) {
|
|
23737
|
+
if ((!isLi || (event === null || event === void 0 ? void 0 : event.shiftKey)) && checkBR(fake, jodit, event === null || event === void 0 ? void 0 : event.shiftKey, block)) {
|
|
23738
23738
|
return false;
|
|
23739
23739
|
}
|
|
23740
23740
|
if (!block && !hasPreviousBlock(fake, jodit)) {
|