jodit-pro-react 5.6.11 → 5.6.12

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-4D73PVWL.mjs";
3
+ } from "./chunk-RC5ET5YT.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -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.2";
196
+ APP_VERSION = "4.15.3";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -29192,6 +29192,14 @@ var __decorate59 = function(decorators, target, key3, desc) {
29192
29192
  return c69 > 3 && r71 && Object.defineProperty(target, key3, r71), r71;
29193
29193
  };
29194
29194
  var keyBInd = "__jodit-resizer_binded";
29195
+ function attrPixelSize(element, key3) {
29196
+ var _a2;
29197
+ const value = (_a2 = attr(element, key3)) === null || _a2 === void 0 ? void 0 : _a2.trim();
29198
+ if (!value || !/^\d+(\.\d+)?(px)?$/i.test(value)) {
29199
+ return 0;
29200
+ }
29201
+ return parseFloat(value);
29202
+ }
29195
29203
  var resizer = class extends Plugin {
29196
29204
  constructor() {
29197
29205
  super(...arguments);
@@ -29474,11 +29482,17 @@ var resizer = class extends Plugin {
29474
29482
  "data-jodit_iframe_wrapper": 1
29475
29483
  });
29476
29484
  attr(wrapper, "style", attr(element, "style"));
29485
+ const width = element.offsetWidth || attrPixelSize(element, "width");
29486
+ const height = element.offsetHeight || attrPixelSize(element, "height");
29477
29487
  css(wrapper, {
29478
- display: cssInline(element, "display") === "inline-block" ? "inline-block" : "block",
29479
- width: element.offsetWidth,
29480
- height: element.offsetHeight
29488
+ display: cssInline(element, "display") === "inline-block" ? "inline-block" : "block"
29481
29489
  });
29490
+ if (width) {
29491
+ css(wrapper, "width", width);
29492
+ }
29493
+ if (height) {
29494
+ css(wrapper, "height", height);
29495
+ }
29482
29496
  if (element.parentNode) {
29483
29497
  Dom.before(element, wrapper);
29484
29498
  }
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-4D73PVWL.mjs";
5
+ } from "./chunk-RC5ET5YT.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;