jodit-pro-react 5.5.89 → 5.5.90
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.26";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -9133,6 +9133,10 @@ var Popup = class _Popup extends UIGroup {
|
|
|
9133
9133
|
this.j.e.fire(this, "beforeClose");
|
|
9134
9134
|
this.j.e.fire("beforePopupClose", this);
|
|
9135
9135
|
this.__removeGlobalListeners();
|
|
9136
|
+
const { activeElement } = this.od;
|
|
9137
|
+
if (activeElement && activeElement !== this.container && Dom.isOrContains(this.container, activeElement) && isFunction(activeElement.blur)) {
|
|
9138
|
+
activeElement.blur();
|
|
9139
|
+
}
|
|
9136
9140
|
Dom.safeRemove(this.container);
|
|
9137
9141
|
return this;
|
|
9138
9142
|
}
|
|
@@ -16201,15 +16205,17 @@ var ToolbarButton = class ToolbarButton2 extends UIButton {
|
|
|
16201
16205
|
return this.openedPopup;
|
|
16202
16206
|
}
|
|
16203
16207
|
__closePopup() {
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16212
|
-
|
|
16208
|
+
const popup = this.openedPopup;
|
|
16209
|
+
if (!popup) {
|
|
16210
|
+
return;
|
|
16211
|
+
}
|
|
16212
|
+
this.openedPopup = null;
|
|
16213
|
+
this.j.e.off(this.ow, "mousedown touchstart", this.onOutsideClick).off("escape closeAllPopups", this.onOutsideClick);
|
|
16214
|
+
this.state.activated = false;
|
|
16215
|
+
popup.close();
|
|
16216
|
+
popup.destruct();
|
|
16217
|
+
if (this.trigger) {
|
|
16218
|
+
attr(this.trigger, "aria-expanded", false);
|
|
16213
16219
|
}
|
|
16214
16220
|
}
|
|
16215
16221
|
/**
|
|
@@ -21007,8 +21013,12 @@ var ColorPickerWidget = (editor, callback, coldColor) => {
|
|
|
21007
21013
|
const { extra } = refs(form2);
|
|
21008
21014
|
extra.appendChild(editor.c.fromHTML(`<div class="${cn}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${valueHex || ""}"/></div>`));
|
|
21009
21015
|
const { hexInput } = refs(form2);
|
|
21016
|
+
let appliedHexValue = null;
|
|
21010
21017
|
const applyHexInput = () => {
|
|
21011
21018
|
const raw = hexInput.value.trim();
|
|
21019
|
+
if (raw === appliedHexValue) {
|
|
21020
|
+
return;
|
|
21021
|
+
}
|
|
21012
21022
|
const isHex = /^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(raw);
|
|
21013
21023
|
const isRgb = /^rgba?\([\d\s.,%]+\)$/i.test(raw);
|
|
21014
21024
|
if (!isHex && !isRgb) {
|
|
@@ -21016,6 +21026,7 @@ var ColorPickerWidget = (editor, callback, coldColor) => {
|
|
|
21016
21026
|
}
|
|
21017
21027
|
const color2 = normalizeColor(isHex && !raw.startsWith("#") ? "#" + raw : raw);
|
|
21018
21028
|
if (color2 && isFunction(callback)) {
|
|
21029
|
+
appliedHexValue = raw;
|
|
21019
21030
|
callback(color2);
|
|
21020
21031
|
}
|
|
21021
21032
|
};
|