jodit 4.20.0 → 4.20.1

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +7 -7
  4. package/es2015/jodit.js +19 -3
  5. package/es2015/jodit.min.js +7 -7
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +7 -7
  13. package/es2018/jodit.min.js +7 -7
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +7 -7
  18. package/es2021/jodit.js +19 -3
  19. package/es2021/jodit.min.js +7 -7
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +7 -7
  28. package/es2021.en/jodit.js +19 -3
  29. package/es2021.en/jodit.min.js +7 -7
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +25 -3
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/core/ui/form/inputs/input/input.js +2 -0
  52. package/esm/modules/toolbar/button/button.js +2 -0
  53. package/esm/plugins/link/template.js +3 -1
  54. package/esm/plugins/resizer/resizer.d.ts +6 -0
  55. package/esm/plugins/resizer/resizer.js +11 -0
  56. package/package.json +1 -1
  57. package/types/plugins/resizer/resizer.d.ts +6 -0
package/es5/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.20.0
4
+ * Version: v4.20.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -2155,7 +2155,7 @@ __webpack_require__.r(__webpack_exports__);
2155
2155
  * @packageDocumentation
2156
2156
  * @module constants
2157
2157
  */
2158
- var APP_VERSION = "4.20.0";
2158
+ var APP_VERSION = "4.20.1";
2159
2159
  // prettier-ignore
2160
2160
  var ES = "es5";
2161
2161
  var IS_ES_MODERN = false;
@@ -20361,6 +20361,8 @@ var UIInput = /*#__PURE__*/ function(UIElement) {
20361
20361
  if (label) {
20362
20362
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_10__.Dom.before(this.wrapper, this.label);
20363
20363
  this.label.innerText = this.j.i18n(label);
20364
+ // The label is a span, so it names the input only this way
20365
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_12__.attr)(input, 'aria-label', this.j.i18n(label));
20364
20366
  } else {
20365
20367
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_10__.Dom.safeRemove(this.label);
20366
20368
  }
@@ -31610,6 +31612,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
31610
31612
  value: function onChangeText() {
31611
31613
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_21__.isFunction)(this.control.template)) {
31612
31614
  this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
31615
+ // The name given before the text came would otherwise stay
31616
+ this.updateAriaLabel();
31613
31617
  } else {
31614
31618
  (0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__._)(ToolbarButton.prototype), "onChangeText", this).call(this);
31615
31619
  }
@@ -50869,7 +50873,9 @@ var formTemplate = function formTemplate(editor) {
50869
50873
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
50870
50874
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
50871
50875
  name: 'url',
50872
- type: 'text',
50876
+ // Touch keyboards leave a URL field as typed, with no capital or
50877
+ // correction. The form is `novalidate`, so any address still goes in
50878
+ type: 'url',
50873
50879
  ref: 'url_input',
50874
50880
  label: 'URL',
50875
50881
  placeholder: 'http://',
@@ -54491,6 +54497,19 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
54491
54497
  this.__onChangeEditor();
54492
54498
  }
54493
54499
  },
54500
+ {
54501
+ key: "onEditorTouchEnd",
54502
+ value: /**
54503
+ * A tap that selects an image sends no `click` (iPadOS), so `touchend`
54504
+ * stands in for it. A tick later, after `onClickOutside` has had the same
54505
+ * `touchend`, as `click` comes after `mouseup`
54506
+ */ function onEditorTouchEnd(e) {
54507
+ var _this = this;
54508
+ this.j.async.setTimeout(function() {
54509
+ return _this.onEditorClick(e);
54510
+ }, 1);
54511
+ }
54512
+ },
54494
54513
  {
54495
54514
  key: "onEditorClick",
54496
54515
  value: /**
@@ -54944,6 +54963,9 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
54944
54963
  ]);
54945
54964
  return resizer;
54946
54965
  }((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_14__.Plugin));
54966
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
54967
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':touchend')
54968
+ ], resizer.prototype, "onEditorTouchEnd", null);
54947
54969
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__._)([
54948
54970
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)(':click')
54949
54971
  ], resizer.prototype, "onEditorClick", null);
package/es5/jodit.min.css CHANGED
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.20.0
4
+ * Version: v4.20.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
  /*!
9
9
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
11
- * Version: v4.20.0
11
+ * Version: v4.20.1
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */