jodit-pro-react 5.5.85 → 5.5.86
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.13.
|
|
196
|
+
APP_VERSION = "4.13.23";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -20485,7 +20485,7 @@ function fillEmptyParagraph(jodit, nodeElm, hadEffect) {
|
|
|
20485
20485
|
init_dom();
|
|
20486
20486
|
function removeEmptyTextNode(jodit, node, hadEffect, arg, argi, currentNode) {
|
|
20487
20487
|
if (Dom.isText(node) && !node.nodeValue) {
|
|
20488
|
-
if (node === currentNode && jodit.s.isCollapsed()) {
|
|
20488
|
+
if (node === currentNode && jodit.s.isFocused() && jodit.s.isCollapsed()) {
|
|
20489
20489
|
jodit.s.setCursorAfter(node);
|
|
20490
20490
|
}
|
|
20491
20491
|
Dom.safeRemove(node);
|
|
@@ -20509,7 +20509,7 @@ function removeInvTextNodes(jodit, node, hadEffect, arg, argi, currentNode) {
|
|
|
20509
20509
|
return hadEffect;
|
|
20510
20510
|
}
|
|
20511
20511
|
node.nodeValue = node.nodeValue.replace(INVISIBLE_SPACE_REG_EXP(), "");
|
|
20512
|
-
if (node === currentNode && jodit.s.isCollapsed()) {
|
|
20512
|
+
if (node === currentNode && jodit.s.isFocused() && jodit.s.isCollapsed()) {
|
|
20513
20513
|
jodit.s.setCursorAfter(node);
|
|
20514
20514
|
}
|
|
20515
20515
|
if (!node.nodeValue) {
|