jodit 3.23.2 → 3.23.3

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,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.23.2
4
+ * Version: v3.23.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -10717,15 +10717,18 @@ let UIElement = UIElement_1 = class UIElement extends jodit_core_component__WEBP
10717
10717
  createContainer(options) {
10718
10718
  const result = this.render(options);
10719
10719
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .H)(result)) {
10720
- const elm = this.j.c.fromHTML(result
10721
- .replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
10722
- .replace(/&__/g, this.componentName + '__')
10723
- .replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
10720
+ const elm = this.parseTemplate(result);
10724
10721
  elm.classList.add(this.componentName);
10725
10722
  return elm;
10726
10723
  }
10727
10724
  return result;
10728
10725
  }
10726
+ parseTemplate(result) {
10727
+ return this.j.c.fromHTML(result
10728
+ .replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
10729
+ .replace(/&__/g, this.componentName + '__')
10730
+ .replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
10731
+ }
10729
10732
  destruct() {
10730
10733
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(this.container);
10731
10734
  this.parentElement = null;
@@ -12619,7 +12622,7 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
12619
12622
  this.parent = null;
12620
12623
  this.mods = {};
12621
12624
  this.components = new Set();
12622
- this.version = "3.23.2";
12625
+ this.version = "3.23.3";
12623
12626
  this.buffer = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage();
12624
12627
  this.storage = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage(true, this.componentName);
12625
12628
  this.OPTIONS = View_1.defaultOptions;
@@ -12701,10 +12704,10 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
12701
12704
  return this.__isFullSize;
12702
12705
  }
12703
12706
  getVersion() {
12704
- return "3.23.2";
12707
+ return "3.23.3";
12705
12708
  }
12706
12709
  static getVersion() {
12707
- return "3.23.2";
12710
+ return "3.23.3";
12708
12711
  }
12709
12712
  initOptions(options) {
12710
12713
  this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(this.options || {}, View_1.defaultOptions));
@@ -18001,7 +18004,15 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
18001
18004
  name: key.toString(),
18002
18005
  template: childTemplate &&
18003
18006
  ((j, k, v) => childTemplate(j, k, v, this)),
18004
- exec: control.exec,
18007
+ exec: control.childExec
18008
+ ? (view, current, options) => {
18009
+ var _a;
18010
+ return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, {
18011
+ ...options,
18012
+ parentControl: control
18013
+ });
18014
+ }
18015
+ : control.exec,
18005
18016
  data: control.data,
18006
18017
  command: control.command,
18007
18018
  isActive: control.isChildActive,