jodit 4.13.19 → 4.13.20
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 +6 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +26 -10
- package/es2015/jodit.min.js +9 -9
- 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 +3 -3
- package/es2018/jodit.min.js +3 -3
- 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 +3 -3
- package/es2021/jodit.js +26 -10
- package/es2021/jodit.min.js +3 -3
- 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 +3 -3
- package/es2021.en/jodit.js +26 -10
- package/es2021.en/jodit.min.js +3 -3
- 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 +36 -10
- 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/plugins/search/ui/search.js +24 -4
- package/package.json +1 -1
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.13.
|
|
4
|
+
* Version: v4.13.20
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1849,7 +1849,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1849
1849
|
* ```
|
|
1850
1850
|
* @packageDocumentation
|
|
1851
1851
|
* @module constants
|
|
1852
|
-
*/ const APP_VERSION = "4.13.
|
|
1852
|
+
*/ const APP_VERSION = "4.13.20";
|
|
1853
1853
|
// prettier-ignore
|
|
1854
1854
|
const ES = "es2015";
|
|
1855
1855
|
const IS_ES_MODERN = true;
|
|
@@ -40273,10 +40273,26 @@ class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_7__.UIElement {
|
|
|
40273
40273
|
this.replaceButton = replaceBtn;
|
|
40274
40274
|
this.currentBox = current;
|
|
40275
40275
|
this.countBox = count;
|
|
40276
|
+
const closeAction = ()=>this.close();
|
|
40277
|
+
const replaceAction = ()=>void jodit.e.fire(this, 'pressReplaceButton');
|
|
40278
|
+
const nextAction = ()=>void jodit.e.fire('searchNext');
|
|
40279
|
+
const prevAction = ()=>void jodit.e.fire('searchPrevious');
|
|
40280
|
+
// Pointer activation is handled on `pointerdown` (returning `false`
|
|
40281
|
+
// there keeps the focus and selection intact), but activating a
|
|
40282
|
+
// native button from the keyboard (Enter/Space) fires only `click`
|
|
40283
|
+
// with `detail === 0` — handle that path separately. Pointer clicks
|
|
40284
|
+
// arrive with `detail >= 1`, so the action does not run twice.
|
|
40285
|
+
// See https://github.com/xdan/jodit/issues/1440
|
|
40286
|
+
const onKeyboardActivate = (action)=>(e)=>{
|
|
40287
|
+
if (!e.detail) {
|
|
40288
|
+
e.preventDefault();
|
|
40289
|
+
action();
|
|
40290
|
+
}
|
|
40291
|
+
};
|
|
40276
40292
|
jodit.e.on(this.closeButton, 'pointerdown', ()=>{
|
|
40277
|
-
|
|
40293
|
+
closeAction();
|
|
40278
40294
|
return false;
|
|
40279
|
-
}).on(this.queryInput, 'input', ()=>{
|
|
40295
|
+
}).on(this.closeButton, 'click', onKeyboardActivate(closeAction)).on(this.queryInput, 'input', ()=>{
|
|
40280
40296
|
this.currentIndex = 0;
|
|
40281
40297
|
}).on(this.queryInput, 'pointerdown', ()=>{
|
|
40282
40298
|
if (jodit.s.isFocused()) {
|
|
@@ -40284,15 +40300,15 @@ class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_7__.UIElement {
|
|
|
40284
40300
|
this.selInfo = jodit.s.save();
|
|
40285
40301
|
}
|
|
40286
40302
|
}).on(this.replaceButton, 'pointerdown', ()=>{
|
|
40287
|
-
|
|
40303
|
+
replaceAction();
|
|
40288
40304
|
return false;
|
|
40289
|
-
}).on(next, 'pointerdown', ()=>{
|
|
40290
|
-
|
|
40305
|
+
}).on(this.replaceButton, 'click', onKeyboardActivate(replaceAction)).on(next, 'pointerdown', ()=>{
|
|
40306
|
+
nextAction();
|
|
40291
40307
|
return false;
|
|
40292
|
-
}).on(prev, 'pointerdown', ()=>{
|
|
40293
|
-
|
|
40308
|
+
}).on(next, 'click', onKeyboardActivate(nextAction)).on(prev, 'pointerdown', ()=>{
|
|
40309
|
+
prevAction();
|
|
40294
40310
|
return false;
|
|
40295
|
-
}).on(this.queryInput, 'input', ()=>{
|
|
40311
|
+
}).on(prev, 'click', onKeyboardActivate(prevAction)).on(this.queryInput, 'input', ()=>{
|
|
40296
40312
|
this.setMod('empty-query', !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.trim)(this.queryInput.value).length);
|
|
40297
40313
|
}).on(this.queryInput, 'keydown', (()=>{
|
|
40298
40314
|
const debounced = this.j.async.debounce((e)=>(0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function*() {
|