jodit-pro-react 5.4.19 → 5.4.20

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-Y6L54J7M.mjs";
3
+ } from "./chunk-XCHRHDRX.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -47107,7 +47107,7 @@ var t40 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24
47107
47107
  // node_modules/jodit-pro/esm/plugins/style/config.js
47108
47108
  init_config();
47109
47109
  Config.prototype.customStyles = { definitions: [] }, Config.prototype.controls.style = { tooltip: "Styles", icon: t40, isDisabled(t42) {
47110
- return !t42.o.customStyles.definitions.length || !t42.s.current();
47110
+ return !t42.o.customStyles.definitions.length;
47111
47111
  }, isActive(t42) {
47112
47112
  const e40 = t42.o.customStyles.definitions;
47113
47113
  return e40.length ? d42(t42, e40) != null : false;
@@ -47119,7 +47119,7 @@ Config.prototype.customStyles = { definitions: [] }, Config.prototype.controls.s
47119
47119
  }, popup(t42, e40, o48) {
47120
47120
  const s50 = t42.o.customStyles.definitions;
47121
47121
  if (!s50.length) return false;
47122
- t42.s.save();
47122
+ t42.s.current() || t42.s.focus(), t42.s.save();
47123
47123
  const l42 = w10(t42, s50, () => {
47124
47124
  t42.s.restore(), o48();
47125
47125
  });
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-Y6L54J7M.mjs";
5
+ } from "./chunk-XCHRHDRX.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;