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.
package/build/jodit.css CHANGED
@@ -1,14 +1,14 @@
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
  */
8
8
  /*!
9
9
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
11
- * Version: v3.23.2
11
+ * Version: v3.23.3
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -10584,15 +10584,18 @@ let UIElement = UIElement_1 = class UIElement extends jodit_core_component__WEBP
10584
10584
  createContainer(options) {
10585
10585
  const result = this.render(options);
10586
10586
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .H)(result)) {
10587
- const elm = this.j.c.fromHTML(result
10588
- .replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
10589
- .replace(/&__/g, this.componentName + '__')
10590
- .replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
10587
+ const elm = this.parseTemplate(result);
10591
10588
  elm.classList.add(this.componentName);
10592
10589
  return elm;
10593
10590
  }
10594
10591
  return result;
10595
10592
  }
10593
+ parseTemplate(result) {
10594
+ return this.j.c.fromHTML(result
10595
+ .replace(/\*([^*]+?)\*/g, (_, name) => jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon.get */ .J.get(name) || '')
10596
+ .replace(/&__/g, this.componentName + '__')
10597
+ .replace(/~([^~]+?)~/g, (_, s) => this.i18n(s)));
10598
+ }
10596
10599
  destruct() {
10597
10600
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom.safeRemove */ .i.safeRemove(this.container);
10598
10601
  this.parentElement = null;
@@ -12486,7 +12489,7 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
12486
12489
  this.parent = null;
12487
12490
  this.mods = {};
12488
12491
  this.components = new Set();
12489
- this.version = "3.23.2";
12492
+ this.version = "3.23.3";
12490
12493
  this.buffer = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage();
12491
12494
  this.storage = _storage__WEBPACK_IMPORTED_MODULE_0__/* .Storage.makeStorage */ .Ke.makeStorage(true, this.componentName);
12492
12495
  this.OPTIONS = View_1.defaultOptions;
@@ -12568,10 +12571,10 @@ let View = View_1 = class View extends jodit_modules__WEBPACK_IMPORTED_MODULE_3_
12568
12571
  return this.__isFullSize;
12569
12572
  }
12570
12573
  getVersion() {
12571
- return "3.23.2";
12574
+ return "3.23.3";
12572
12575
  }
12573
12576
  static getVersion() {
12574
- return "3.23.2";
12577
+ return "3.23.3";
12575
12578
  }
12576
12579
  initOptions(options) {
12577
12580
  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));
@@ -17868,7 +17871,15 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
17868
17871
  name: key.toString(),
17869
17872
  template: childTemplate &&
17870
17873
  ((j, k, v) => childTemplate(j, k, v, this)),
17871
- exec: control.exec,
17874
+ exec: control.childExec
17875
+ ? (view, current, options) => {
17876
+ var _a;
17877
+ return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, {
17878
+ ...options,
17879
+ parentControl: control
17880
+ });
17881
+ }
17882
+ : control.exec,
17872
17883
  data: control.data,
17873
17884
  command: control.command,
17874
17885
  isActive: control.isChildActive,