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.
- package/CHANGELOG.md +8 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +7 -7
- package/es2015/jodit.js +19 -3
- package/es2015/jodit.min.js +7 -7
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +7 -7
- package/es2018/jodit.min.js +7 -7
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +7 -7
- package/es2021/jodit.js +19 -3
- package/es2021/jodit.min.js +7 -7
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +7 -7
- package/es2021.en/jodit.js +19 -3
- package/es2021.en/jodit.min.js +7 -7
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +25 -3
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/ui/form/inputs/input/input.js +2 -0
- package/esm/modules/toolbar/button/button.js +2 -0
- package/esm/plugins/link/template.js +3 -1
- package/esm/plugins/resizer/resizer.d.ts +6 -0
- package/esm/plugins/resizer/resizer.js +11 -0
- package/package.json +1 -1
- package/types/plugins/resizer/resizer.d.ts +6 -0
package/es2015/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.
|
|
4
|
+
* Version: v4.20.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1830,7 +1830,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1830
1830
|
* ```
|
|
1831
1831
|
* @packageDocumentation
|
|
1832
1832
|
* @module constants
|
|
1833
|
-
*/ const APP_VERSION = "4.20.
|
|
1833
|
+
*/ const APP_VERSION = "4.20.1";
|
|
1834
1834
|
// prettier-ignore
|
|
1835
1835
|
const ES = "es2015";
|
|
1836
1836
|
const IS_ES_MODERN = true;
|
|
@@ -17060,6 +17060,8 @@ class UIInput extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_7__.UIEleme
|
|
|
17060
17060
|
if (label) {
|
|
17061
17061
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.before(this.wrapper, this.label);
|
|
17062
17062
|
this.label.innerText = this.j.i18n(label);
|
|
17063
|
+
// The label is a span, so it names the input only this way
|
|
17064
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_6__.attr)(input, 'aria-label', this.j.i18n(label));
|
|
17063
17065
|
} else {
|
|
17064
17066
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.safeRemove(this.label);
|
|
17065
17067
|
}
|
|
@@ -26363,6 +26365,8 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_22__.U
|
|
|
26363
26365
|
onChangeText() {
|
|
26364
26366
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_13__.isFunction)(this.control.template)) {
|
|
26365
26367
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
26368
|
+
// The name given before the text came would otherwise stay
|
|
26369
|
+
this.updateAriaLabel();
|
|
26366
26370
|
} else {
|
|
26367
26371
|
super.onChangeText();
|
|
26368
26372
|
}
|
|
@@ -43272,7 +43276,9 @@ const formTemplate = (editor)=>{
|
|
|
43272
43276
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
|
|
43273
43277
|
new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
|
|
43274
43278
|
name: 'url',
|
|
43275
|
-
|
|
43279
|
+
// Touch keyboards leave a URL field as typed, with no capital or
|
|
43280
|
+
// correction. The form is `novalidate`, so any address still goes in
|
|
43281
|
+
type: 'url',
|
|
43276
43282
|
ref: 'url_input',
|
|
43277
43283
|
label: 'URL',
|
|
43278
43284
|
placeholder: 'http://',
|
|
@@ -46321,6 +46327,13 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
46321
46327
|
this.addEventListeners();
|
|
46322
46328
|
this.__onChangeEditor();
|
|
46323
46329
|
}
|
|
46330
|
+
/**
|
|
46331
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
46332
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
46333
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
46334
|
+
*/ onEditorTouchEnd(e) {
|
|
46335
|
+
this.j.async.setTimeout(()=>this.onEditorClick(e), 1);
|
|
46336
|
+
}
|
|
46324
46337
|
/**
|
|
46325
46338
|
* Click in the editor area
|
|
46326
46339
|
*/ onEditorClick(e) {
|
|
@@ -46747,6 +46760,9 @@ const IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
|
|
|
46747
46760
|
}
|
|
46748
46761
|
}
|
|
46749
46762
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46763
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':touchend')
|
|
46764
|
+
], resizer.prototype, "onEditorTouchEnd", null);
|
|
46765
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|
|
46750
46766
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':click')
|
|
46751
46767
|
], resizer.prototype, "onEditorClick", null);
|
|
46752
46768
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
|