jodit 4.14.2 → 4.14.4
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 +28 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +13 -13
- package/es2015/jodit.js +692 -540
- package/es2015/jodit.min.js +13 -13
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +2 -2
- package/es2015/plugins/debug/debug.min.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +50 -50
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.js +13 -13
- package/es2018/jodit.min.js +13 -13
- package/es2018/plugins/debug/debug.min.js +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +16 -16
- package/es2021/jodit.js +679 -531
- package/es2021/jodit.min.js +15 -15
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +2 -2
- package/es2021/plugins/debug/debug.min.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +50 -50
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +14 -14
- package/es2021.en/jodit.js +457 -296
- package/es2021.en/jodit.min.js +14 -14
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +2 -2
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +915 -609
- 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 +2 -2
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +50 -50
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +32 -57
- package/es5/polyfills.min.js +2 -2
- package/esm/core/constants.js +1 -1
- package/esm/core/selection/helpers/index.js +5 -2
- package/esm/core/selection/selection.d.ts +8 -5
- package/esm/core/selection/selection.js +267 -159
- package/esm/core/selection/style/api/extract.js +1 -3
- package/esm/core/selection/style/api/is-same-attributes.js +5 -2
- package/esm/core/selection/style/api/toggle-attributes.js +27 -10
- package/esm/core/selection/style/api/unwrap-children.js +39 -33
- package/esm/core/selection/style/apply-style.js +23 -25
- package/esm/core/selection/style/commit-style.js +3 -0
- package/esm/core/selection/style/transactions.js +2 -1
- package/esm/langs/az.d.ts +223 -0
- package/esm/langs/az.js +240 -0
- package/esm/languages.js +2 -0
- package/esm/modules/history/snapshot.js +45 -20
- package/esm/types/style.d.ts +2 -2
- package/esm/types/types.d.ts +3 -0
- package/package.json +1 -1
- package/types/core/selection/selection.d.ts +8 -5
- package/types/langs/az.d.ts +223 -0
- package/types/types/style.d.ts +2 -2
- package/types/types/types.d.ts +3 -0
|
@@ -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.14.
|
|
4
|
+
* Version: v4.14.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -197,7 +197,7 @@ function render(elm, level, range) {
|
|
|
197
197
|
|
|
198
198
|
},
|
|
199
199
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
200
|
-
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(
|
|
200
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(moduleId); }
|
|
201
201
|
/******/ var __webpack_exports__ = (__webpack_exec__(96206));
|
|
202
202
|
/******/ return __webpack_exports__;
|
|
203
203
|
/******/ }
|
|
@@ -1,11 +1,11 @@
|
|
|
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.14.
|
|
4
|
+
* Version: v4.14.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(self,function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[486],{96206:function(e,t,n){n.r(t),n.d(t,{Debug:function(){return i}});var s=n(81937),o=n(23211),a=n(22852),r=n(18855);class i extends r.Plugin{afterInit(e){let t=e.create.div("jodit-debug"),n=e.create.div("jodit-debug__tree"),r=e.create.div("jodit-debug__events"),i=e.create.div("jodit-debug__events-clear",["x"]),c=e.create.div("jodit-debug__sel");function d(){let t=e.selection.range;n.innerHTML=function e(t,n,r){let i=window.getSelection()?.containsNode(t),c=[`<span class="jodit-debug__tree-elm-name">${t.nodeName}</span>`,o.Dom.isText(t)?"- "+function(e,t){if(!e.nodeValue)return"<span style='color:red'>empty</span>";let n=e.nodeValue;return t.collapsed?e===t.startContainer&&(n=n.slice(0,t.startOffset)+"%CURSOR%"+n.slice(t.startOffset)):e===t.startContainer&&e===t.endContainer?n=n.slice(0,t.startOffset)+"%START-CURSOR%"+n.slice(t.startOffset,t.endOffset)+"%END-CURSOR%"+n.slice(t.endOffset):e===t.startContainer?n=n.slice(0,t.startOffset)+"%CURSOR%"+n.slice(t.startOffset):e===t.endContainer&&(n=n.slice(0,t.endOffset)+"%CURSOR%"+n.slice(t.endOffset)),(0,a.stripTags)(n.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"INV")).replace(/%CURSOR%/,'<span class="jodit-debug__tree-cursor">|</span>').replace(/%START-CURSOR%/,'<span class="jodit-debug__tree-cursor">|').replace(/%END-CURSOR%/,"|</span>")}(t,r):""].map(e=>e.trim()).filter(Boolean);return`<div class="${i?"jodit-debug__tree-element_selected":""}" style='padding-left: ${5*n}px'>
|
|
9
9
|
${c.join(" ")}
|
|
10
10
|
${Array.from(t.childNodes).map((s,o)=>{let a=[];return r.startContainer===t&&o===r.startOffset&&a.push('<span class="jodit-debug__tree-cursor">|</span>'),a.push(e(s,n+1,r)),r.endContainer===t&&o===r.endOffset&&a.push('<span class="jodit-debug__tree-cursor">|</span>'),a}).flat().join("")}
|
|
11
|
-
</div>`}(e.editor,0,t),c.innerHTML=`start ${t.startContainer.nodeName} ${t.startOffset}<br>end ${t.endContainer.nodeName} ${t.endOffset}`}function p(t){let n=e.e.current,s=e.create.div();s.innerHTML=`<span>${new Date().toLocaleTimeString()}</span> ${function(e,t){let n=[e??t.type];switch(e){case"beforeCommand":case"afterCommand":n.push(`<span>${t.toString()}</span>`);break;case"keydown":case"keyup":case"keypress":t.shiftKey&&"Shift"!==t.key&&n.push("Shift+"),t.ctrlKey&&"Control"!==t.key&&n.push("Ctrl+"),t.altKey&&"Alt"!==t.key&&n.push("Alt"),n.push(""+t.key)}return t&&o.Dom.isNode(t.target)&&n.push(`<span>${t.target.nodeName}</span>`),n.join(" ")}(n,t)}`,o.Dom.append(r,s),r.scrollTop=r.scrollHeight,e.async.setTimeout(()=>{r.children.length>100&&o.Dom.safeRemove(r.children[0])},100)}o.Dom.append(t,n),o.Dom.append(t,r),o.Dom.append(r,i),o.Dom.append(t,c),i.addEventListener("click",()=>{o.Dom.detach(r),o.Dom.append(r,i)}),o.Dom.append(e.workplace,t),e.e.on("keydown keyup keypress change afterInit updateDebug",d).on(["activate","afterInit","beforeactivate","beforeblur","beforedeactivate","beforefocus","beforeinput","blur","change","click","compositionend","compositionstart","compositionupdate","contextmenu","copy","cut","dblclick","deactivate","focus","focusin","focusout","focusout","input","keydown","keypress","keyup","mousedown","mouseup","paste","selectionchange","selectionstart","dragstart","drop","dragover","resize touchstart touchend","updateDebug","beforeCommand","afterCommand","wheel"],p).on(e.od,"selectionchange",p).on(e.od,"selectionchange",d)}beforeDestruct(e){}}}},function(e){return e(
|
|
11
|
+
</div>`}(e.editor,0,t),c.innerHTML=`start ${t.startContainer.nodeName} ${t.startOffset}<br>end ${t.endContainer.nodeName} ${t.endOffset}`}function p(t){let n=e.e.current,s=e.create.div();s.innerHTML=`<span>${new Date().toLocaleTimeString()}</span> ${function(e,t){let n=[e??t.type];switch(e){case"beforeCommand":case"afterCommand":n.push(`<span>${t.toString()}</span>`);break;case"keydown":case"keyup":case"keypress":t.shiftKey&&"Shift"!==t.key&&n.push("Shift+"),t.ctrlKey&&"Control"!==t.key&&n.push("Ctrl+"),t.altKey&&"Alt"!==t.key&&n.push("Alt"),n.push(""+t.key)}return t&&o.Dom.isNode(t.target)&&n.push(`<span>${t.target.nodeName}</span>`),n.join(" ")}(n,t)}`,o.Dom.append(r,s),r.scrollTop=r.scrollHeight,e.async.setTimeout(()=>{r.children.length>100&&o.Dom.safeRemove(r.children[0])},100)}o.Dom.append(t,n),o.Dom.append(t,r),o.Dom.append(r,i),o.Dom.append(t,c),i.addEventListener("click",()=>{o.Dom.detach(r),o.Dom.append(r,i)}),o.Dom.append(e.workplace,t),e.e.on("keydown keyup keypress change afterInit updateDebug",d).on(["activate","afterInit","beforeactivate","beforeblur","beforedeactivate","beforefocus","beforeinput","blur","change","click","compositionend","compositionstart","compositionupdate","contextmenu","copy","cut","dblclick","deactivate","focus","focusin","focusout","focusout","input","keydown","keypress","keyup","mousedown","mouseup","paste","selectionchange","selectionstart","dragstart","drop","dragover","resize touchstart touchend","updateDebug","beforeCommand","afterCommand","wheel"],p).on(e.od,"selectionchange",p).on(e.od,"selectionchange",d)}beforeDestruct(e){}}}},function(e){return e(96206)}])});
|
|
@@ -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.14.
|
|
4
|
+
* Version: v4.14.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -640,81 +640,81 @@ function getContext(owner) {
|
|
|
640
640
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
641
641
|
|
|
642
642
|
"use strict";
|
|
643
|
+
var _ar_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;
|
|
644
|
+
var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
645
|
+
var _de_js__WEBPACK_IMPORTED_MODULE_2___namespace_cache;
|
|
646
|
+
var _es_js__WEBPACK_IMPORTED_MODULE_3___namespace_cache;
|
|
647
|
+
var _fa_js__WEBPACK_IMPORTED_MODULE_4___namespace_cache;
|
|
648
|
+
var _fi_js__WEBPACK_IMPORTED_MODULE_5___namespace_cache;
|
|
649
|
+
var _fr_js__WEBPACK_IMPORTED_MODULE_6___namespace_cache;
|
|
650
|
+
var _he_js__WEBPACK_IMPORTED_MODULE_7___namespace_cache;
|
|
651
|
+
var _hu_js__WEBPACK_IMPORTED_MODULE_8___namespace_cache;
|
|
652
|
+
var _id_js__WEBPACK_IMPORTED_MODULE_9___namespace_cache;
|
|
653
|
+
var _it_js__WEBPACK_IMPORTED_MODULE_10___namespace_cache;
|
|
654
|
+
var _ja_js__WEBPACK_IMPORTED_MODULE_11___namespace_cache;
|
|
655
|
+
var _ko_js__WEBPACK_IMPORTED_MODULE_12___namespace_cache;
|
|
656
|
+
var _mn_js__WEBPACK_IMPORTED_MODULE_13___namespace_cache;
|
|
657
|
+
var _nl_js__WEBPACK_IMPORTED_MODULE_14___namespace_cache;
|
|
658
|
+
var _no_js__WEBPACK_IMPORTED_MODULE_15___namespace_cache;
|
|
659
|
+
var _pl_js__WEBPACK_IMPORTED_MODULE_16___namespace_cache;
|
|
660
|
+
var _pt_br_js__WEBPACK_IMPORTED_MODULE_17___namespace_cache;
|
|
661
|
+
var _ru_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache;
|
|
662
|
+
var _sk_js__WEBPACK_IMPORTED_MODULE_19___namespace_cache;
|
|
663
|
+
var _tr_js__WEBPACK_IMPORTED_MODULE_20___namespace_cache;
|
|
664
|
+
var _ua_js__WEBPACK_IMPORTED_MODULE_21___namespace_cache;
|
|
665
|
+
var _zh_cn_js__WEBPACK_IMPORTED_MODULE_22___namespace_cache;
|
|
666
|
+
var _zh_tw_js__WEBPACK_IMPORTED_MODULE_23___namespace_cache;
|
|
643
667
|
__webpack_require__.r(__webpack_exports__);
|
|
644
668
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
645
|
-
/* harmony export */ ar: function() { return /* reexport
|
|
646
|
-
/* harmony export */ cs_cz: function() { return /* reexport
|
|
647
|
-
/* harmony export */ de: function() { return /* reexport
|
|
648
|
-
/* harmony export */ es: function() { return /* reexport
|
|
649
|
-
/* harmony export */ fa: function() { return /* reexport
|
|
650
|
-
/* harmony export */ fi: function() { return /* reexport
|
|
651
|
-
/* harmony export */ fr: function() { return /* reexport
|
|
652
|
-
/* harmony export */ he: function() { return /* reexport
|
|
653
|
-
/* harmony export */ hu: function() { return /* reexport
|
|
654
|
-
/* harmony export */ id: function() { return /* reexport
|
|
655
|
-
/* harmony export */ it: function() { return /* reexport
|
|
656
|
-
/* harmony export */ ja: function() { return /* reexport
|
|
657
|
-
/* harmony export */ ko: function() { return /* reexport
|
|
658
|
-
/* harmony export */ mn: function() { return /* reexport
|
|
659
|
-
/* harmony export */ nl: function() { return /* reexport
|
|
660
|
-
/* harmony export */ no: function() { return /* reexport
|
|
661
|
-
/* harmony export */ pl: function() { return /* reexport
|
|
662
|
-
/* harmony export */ pt_br: function() { return /* reexport
|
|
663
|
-
/* harmony export */ ru: function() { return /* reexport
|
|
664
|
-
/* harmony export */ sk: function() { return /* reexport
|
|
665
|
-
/* harmony export */ tr: function() { return /* reexport
|
|
666
|
-
/* harmony export */ ua: function() { return /* reexport
|
|
667
|
-
/* harmony export */ zh_cn: function() { return /* reexport
|
|
668
|
-
/* harmony export */ zh_tw: function() { return /* reexport
|
|
669
|
+
/* harmony export */ ar: function() { return /* reexport fake namespace object from non-harmony */ _ar_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (_ar_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(_ar_js__WEBPACK_IMPORTED_MODULE_0__, 2)); },
|
|
670
|
+
/* harmony export */ cs_cz: function() { return /* reexport fake namespace object from non-harmony */ _cs_cz_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_cs_cz_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_cs_cz_js__WEBPACK_IMPORTED_MODULE_1__, 2)); },
|
|
671
|
+
/* harmony export */ de: function() { return /* reexport fake namespace object from non-harmony */ _de_js__WEBPACK_IMPORTED_MODULE_2___namespace_cache || (_de_js__WEBPACK_IMPORTED_MODULE_2___namespace_cache = __webpack_require__.t(_de_js__WEBPACK_IMPORTED_MODULE_2__, 2)); },
|
|
672
|
+
/* harmony export */ es: function() { return /* reexport fake namespace object from non-harmony */ _es_js__WEBPACK_IMPORTED_MODULE_3___namespace_cache || (_es_js__WEBPACK_IMPORTED_MODULE_3___namespace_cache = __webpack_require__.t(_es_js__WEBPACK_IMPORTED_MODULE_3__, 2)); },
|
|
673
|
+
/* harmony export */ fa: function() { return /* reexport fake namespace object from non-harmony */ _fa_js__WEBPACK_IMPORTED_MODULE_4___namespace_cache || (_fa_js__WEBPACK_IMPORTED_MODULE_4___namespace_cache = __webpack_require__.t(_fa_js__WEBPACK_IMPORTED_MODULE_4__, 2)); },
|
|
674
|
+
/* harmony export */ fi: function() { return /* reexport fake namespace object from non-harmony */ _fi_js__WEBPACK_IMPORTED_MODULE_5___namespace_cache || (_fi_js__WEBPACK_IMPORTED_MODULE_5___namespace_cache = __webpack_require__.t(_fi_js__WEBPACK_IMPORTED_MODULE_5__, 2)); },
|
|
675
|
+
/* harmony export */ fr: function() { return /* reexport fake namespace object from non-harmony */ _fr_js__WEBPACK_IMPORTED_MODULE_6___namespace_cache || (_fr_js__WEBPACK_IMPORTED_MODULE_6___namespace_cache = __webpack_require__.t(_fr_js__WEBPACK_IMPORTED_MODULE_6__, 2)); },
|
|
676
|
+
/* harmony export */ he: function() { return /* reexport fake namespace object from non-harmony */ _he_js__WEBPACK_IMPORTED_MODULE_7___namespace_cache || (_he_js__WEBPACK_IMPORTED_MODULE_7___namespace_cache = __webpack_require__.t(_he_js__WEBPACK_IMPORTED_MODULE_7__, 2)); },
|
|
677
|
+
/* harmony export */ hu: function() { return /* reexport fake namespace object from non-harmony */ _hu_js__WEBPACK_IMPORTED_MODULE_8___namespace_cache || (_hu_js__WEBPACK_IMPORTED_MODULE_8___namespace_cache = __webpack_require__.t(_hu_js__WEBPACK_IMPORTED_MODULE_8__, 2)); },
|
|
678
|
+
/* harmony export */ id: function() { return /* reexport fake namespace object from non-harmony */ _id_js__WEBPACK_IMPORTED_MODULE_9___namespace_cache || (_id_js__WEBPACK_IMPORTED_MODULE_9___namespace_cache = __webpack_require__.t(_id_js__WEBPACK_IMPORTED_MODULE_9__, 2)); },
|
|
679
|
+
/* harmony export */ it: function() { return /* reexport fake namespace object from non-harmony */ _it_js__WEBPACK_IMPORTED_MODULE_10___namespace_cache || (_it_js__WEBPACK_IMPORTED_MODULE_10___namespace_cache = __webpack_require__.t(_it_js__WEBPACK_IMPORTED_MODULE_10__, 2)); },
|
|
680
|
+
/* harmony export */ ja: function() { return /* reexport fake namespace object from non-harmony */ _ja_js__WEBPACK_IMPORTED_MODULE_11___namespace_cache || (_ja_js__WEBPACK_IMPORTED_MODULE_11___namespace_cache = __webpack_require__.t(_ja_js__WEBPACK_IMPORTED_MODULE_11__, 2)); },
|
|
681
|
+
/* harmony export */ ko: function() { return /* reexport fake namespace object from non-harmony */ _ko_js__WEBPACK_IMPORTED_MODULE_12___namespace_cache || (_ko_js__WEBPACK_IMPORTED_MODULE_12___namespace_cache = __webpack_require__.t(_ko_js__WEBPACK_IMPORTED_MODULE_12__, 2)); },
|
|
682
|
+
/* harmony export */ mn: function() { return /* reexport fake namespace object from non-harmony */ _mn_js__WEBPACK_IMPORTED_MODULE_13___namespace_cache || (_mn_js__WEBPACK_IMPORTED_MODULE_13___namespace_cache = __webpack_require__.t(_mn_js__WEBPACK_IMPORTED_MODULE_13__, 2)); },
|
|
683
|
+
/* harmony export */ nl: function() { return /* reexport fake namespace object from non-harmony */ _nl_js__WEBPACK_IMPORTED_MODULE_14___namespace_cache || (_nl_js__WEBPACK_IMPORTED_MODULE_14___namespace_cache = __webpack_require__.t(_nl_js__WEBPACK_IMPORTED_MODULE_14__, 2)); },
|
|
684
|
+
/* harmony export */ no: function() { return /* reexport fake namespace object from non-harmony */ _no_js__WEBPACK_IMPORTED_MODULE_15___namespace_cache || (_no_js__WEBPACK_IMPORTED_MODULE_15___namespace_cache = __webpack_require__.t(_no_js__WEBPACK_IMPORTED_MODULE_15__, 2)); },
|
|
685
|
+
/* harmony export */ pl: function() { return /* reexport fake namespace object from non-harmony */ _pl_js__WEBPACK_IMPORTED_MODULE_16___namespace_cache || (_pl_js__WEBPACK_IMPORTED_MODULE_16___namespace_cache = __webpack_require__.t(_pl_js__WEBPACK_IMPORTED_MODULE_16__, 2)); },
|
|
686
|
+
/* harmony export */ pt_br: function() { return /* reexport fake namespace object from non-harmony */ _pt_br_js__WEBPACK_IMPORTED_MODULE_17___namespace_cache || (_pt_br_js__WEBPACK_IMPORTED_MODULE_17___namespace_cache = __webpack_require__.t(_pt_br_js__WEBPACK_IMPORTED_MODULE_17__, 2)); },
|
|
687
|
+
/* harmony export */ ru: function() { return /* reexport fake namespace object from non-harmony */ _ru_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_ru_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_ru_js__WEBPACK_IMPORTED_MODULE_18__, 2)); },
|
|
688
|
+
/* harmony export */ sk: function() { return /* reexport fake namespace object from non-harmony */ _sk_js__WEBPACK_IMPORTED_MODULE_19___namespace_cache || (_sk_js__WEBPACK_IMPORTED_MODULE_19___namespace_cache = __webpack_require__.t(_sk_js__WEBPACK_IMPORTED_MODULE_19__, 2)); },
|
|
689
|
+
/* harmony export */ tr: function() { return /* reexport fake namespace object from non-harmony */ _tr_js__WEBPACK_IMPORTED_MODULE_20___namespace_cache || (_tr_js__WEBPACK_IMPORTED_MODULE_20___namespace_cache = __webpack_require__.t(_tr_js__WEBPACK_IMPORTED_MODULE_20__, 2)); },
|
|
690
|
+
/* harmony export */ ua: function() { return /* reexport fake namespace object from non-harmony */ _ua_js__WEBPACK_IMPORTED_MODULE_21___namespace_cache || (_ua_js__WEBPACK_IMPORTED_MODULE_21___namespace_cache = __webpack_require__.t(_ua_js__WEBPACK_IMPORTED_MODULE_21__, 2)); },
|
|
691
|
+
/* harmony export */ zh_cn: function() { return /* reexport fake namespace object from non-harmony */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_22___namespace_cache || (_zh_cn_js__WEBPACK_IMPORTED_MODULE_22___namespace_cache = __webpack_require__.t(_zh_cn_js__WEBPACK_IMPORTED_MODULE_22__, 2)); },
|
|
692
|
+
/* harmony export */ zh_tw: function() { return /* reexport fake namespace object from non-harmony */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_23___namespace_cache || (_zh_tw_js__WEBPACK_IMPORTED_MODULE_23___namespace_cache = __webpack_require__.t(_zh_tw_js__WEBPACK_IMPORTED_MODULE_23__, 2)); }
|
|
669
693
|
/* harmony export */ });
|
|
670
694
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19922);
|
|
671
|
-
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
672
695
|
/* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20759);
|
|
673
|
-
/* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_cs_cz_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
674
696
|
/* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22350);
|
|
675
|
-
/* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_de_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
676
697
|
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97509);
|
|
677
|
-
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_es_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
678
698
|
/* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49668);
|
|
679
|
-
/* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_fa_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
680
699
|
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33276);
|
|
681
|
-
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fi_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
682
700
|
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43517);
|
|
683
|
-
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fr_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
684
701
|
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8858);
|
|
685
|
-
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_he_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
686
702
|
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22922);
|
|
687
|
-
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_hu_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
688
703
|
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81900);
|
|
689
|
-
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_id_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
690
704
|
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(35420);
|
|
691
|
-
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_it_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
692
705
|
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18712);
|
|
693
|
-
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ja_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
694
706
|
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(73363);
|
|
695
|
-
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_ko_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
696
707
|
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(74762);
|
|
697
|
-
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_mn_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
698
708
|
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(73759);
|
|
699
|
-
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_nl_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
700
709
|
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(72850);
|
|
701
|
-
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_no_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
702
710
|
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(37161);
|
|
703
|
-
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_pl_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
704
711
|
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62896);
|
|
705
|
-
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_pt_br_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
706
712
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(39996);
|
|
707
|
-
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
708
713
|
/* harmony import */ var _sk_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(62415);
|
|
709
|
-
/* harmony import */ var _sk_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_sk_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
710
714
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(93423);
|
|
711
|
-
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
712
715
|
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(10179);
|
|
713
|
-
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
714
716
|
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62547);
|
|
715
|
-
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
716
717
|
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(29475);
|
|
717
|
-
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
718
718
|
/*!
|
|
719
719
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
720
720
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -1143,7 +1143,7 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http
|
|
|
1143
1143
|
|
|
1144
1144
|
},
|
|
1145
1145
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
1146
|
-
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(
|
|
1146
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(moduleId); }
|
|
1147
1147
|
/******/ var __webpack_exports__ = (__webpack_exec__(31262));
|
|
1148
1148
|
/******/ return __webpack_exports__;
|
|
1149
1149
|
/******/ }
|
|
@@ -1,8 +1,8 @@
|
|
|
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.14.
|
|
4
|
+
* Version: v4.14.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(self,function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[882],{75143:function(e,t,n){"use strict";var s=n(22289),i=n(85932),o=n(7909),r=n(36400),u=n(29434),c=n(5266),l=n(97743),a=n(68097),p=n(22227),h=n.n(p);c.Config.prototype.speechRecognize={api:void 0!==l.SpeechRecognition?l.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},u.Icon.set("speech-recognize",h()),c.Config.prototype.controls.speechRecognize={isVisible:e=>!!e.o.speechRecognize.api,isActive(e,t){let n=(0,r.dataBind)(e,"speech");return!!n?.isEnabled},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:n,control:u}){let{api:c,lang:l,continuous:p,interimResults:h,sound:d}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,r.dataBind)(e,"speech");if(!m){let t=new c;(m=new a.RecognizeManager(e.async,t)).lang=(0,i.isString)(l)?l:(0,o.attr)(e.od.documentElement,"lang")??void 0,m.continuous=p,m.interimResults=h,m.sound=d,(0,r.dataBind)(e,"speech",m),m.on("pulse",e=>{n.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,r.dataBind)(e,"speech",null),m.destruct()})}if(u.args){let e=u.args[0];if((0,s.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&n.setMod("pulse",!0),n.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,n){let s=(0,r.dataBind)(e,"speech"),i=s?.[t]??e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${i?"checked":""} class='jodit-checkbox' type='checkbox'> ${n}</span>`},mods:{stroke:!1}}},97743:function(e,t,n){"use strict";var s=n(81937);let i=s.globalWindow?s.globalWindow.SpeechRecognition||s.globalWindow.webkitSpeechRecognition:void 0;n.d(t,["SpeechRecognition",0,i])},8962:function(e,t,n){"use strict";function s(e,t){let[n,s]=t.split("::");"open"===n.toLowerCase()&&s&&/^(javascript:|data:|vbscript:)/i.test(s.trim())||e.execCommand(n,null,s)}n.d(t,{execSpellCommand:function(){return s}})},68097:function(e,t,n){"use strict";n.d(t,{RecognizeManager:function(){return c}});var s=n(25045),i=n(31635),o=n(84839),r=n(60216),u=n(32560);class c extends r.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,u.closeSound)(this),c._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,c._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let n=e.results.item(t);if(n.length){let{transcript:e}=n.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,u.sound)(this,{frequency:e})}constructor(e,t){super(),(0,s._)(this,"async",void 0),(0,s._)(this,"_lang",void 0),(0,s._)(this,"_continuous",void 0),(0,s._)(this,"_interimResults",void 0),(0,s._)(this,"sound",void 0),(0,s._)(this,"_isEnabled",void 0),(0,s._)(this,"_restartTimeout",void 0),(0,s._)(this,"_onSpeechStart",void 0),(0,s._)(this,"_api",void 0),(0,s._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,c._instances.add(this)}}(0,s._)(c,"_instances",new Set),(0,i.__decorate)([o.autobind],c.prototype,"_onResults",null),(0,i.__decorate)([o.autobind],c.prototype,"_onProgress",null),(0,i.__decorate)([o.autobind],c.prototype,"_onError",null)},32560:function(e,t,n){"use strict";n.d(t,{closeSound:function(){return r},sound:function(){return o}});var s=n(81937);let i=new WeakMap;function o(e,{sec:t=.1,frequency:n=440,gain:r=.1,type:u="sine"}={}){let c=function(e){if(!s.globalWindow)return null;let t=i.get(e);if(t&&"closed"!==t.state)return t;let n=s.globalWindow.AudioContext||s.globalWindow.webkitAudioContext;if(!n)return null;let o=new n;return i.set(e,o),o}(e);if(!c)return;let l=c.createGain(),a=c.createOscillator();a.type=u,a.frequency.value=n,l.gain.value=r,a.connect(l),l.connect(c.destination),a.start(),a.stop(c.currentTime+t)}function r(e){let t=i.get(e);t&&(i.delete(e),"closed"!==t.state&&t.close())}},19922:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},20759:function(e){e.exports={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"}},22350:function(e){e.exports={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},97509:function(e){e.exports={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},49668:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},33276:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"}},43517:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"}},8858:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},22922:function(e){e.exports={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"}},81900:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},43219:function(e,t,n){"use strict";n.r(t),n.d(t,{ar:function(){return s},cs_cz:function(){return i},de:function(){return o},es:function(){return r},fa:function(){return u},fi:function(){return c},fr:function(){return l},he:function(){return a},hu:function(){return p},id:function(){return h},it:function(){return d},ja:function(){return m},ko:function(){return _},mn:function(){return g},nl:function(){return f},no:function(){return R},pl:function(){return S},pt_br:function(){return z},ru:function(){return v},sk:function(){return w},tr:function(){return b},ua:function(){return x},zh_cn:function(){return k},zh_tw:function(){return y}});var s=n(19922),i=n(20759),o=n(22350),r=n(97509),u=n(49668),c=n(33276),l=n(43517),a=n(8858),p=n(22922),h=n(81900),d=n(35420),m=n(18712),_=n(73363),g=n(74762),f=n(73759),R=n(72850),S=n(37161),z=n(62896),v=n(39996),w=n(62415),b=n(93423),x=n(10179),k=n(62547),y=n(29475)},35420:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},18712:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},73363:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},74762:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},73759:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},72850:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},37161:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},62896:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"}},39996:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},62415:function(e){e.exports={newline:"nový riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpoznávanie reči",Sound:"Zvuk","Interim Results":"Predbežné výsledky"}},93423:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"}},10179:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},62547:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},29475:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},31262:function(e,t,n){"use strict";n.r(t),n.d(t,{SpeechRecognizeNative:function(){return d}});var s=n(25045),i=n(31635),o=n(68616),r=n(23211),u=n(28077),c=n(71125),l=n(91206);n(75143);var a=n(73302),p=n(8962),h=n(43219);class d extends l.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,u.extendLang)(h),(0,c.keys)(t,!1).forEach(n=>{n.split("|").forEach(s=>{s=s.trim().toLowerCase(),this._commandToWord[s]=t[n];let i=e.i18n(s);i!==s&&i.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[n].trim()})})}))}beforeDestruct(e){r.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),r.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{r.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),r.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:n}=t;if(!this._checkCommand(e)){let{range:s}=n,i=n.current();if(n.isCollapsed()&&r.Dom.isText(i)&&r.Dom.isOrContains(t.editor,i)&&i.nodeValue){let o=i.nodeValue;i.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,s.setStartAfter(i),n.selectRange(s),t.synchronizeValues()}else n.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,p.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,s._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,s._)(this,"messagePopup",void 0),(0,s._)(this,"__hidePopupTimeout",void 0),(0,s._)(this,"_commandToWord",{})}}(0,i.__decorate)([(0,o.watch)(":speechRecognizeProgressResult")],d.prototype,"onSpeechRecognizeProgressResult",null),(0,i.__decorate)([(0,o.watch)(":speechRecognizeResult")],d.prototype,"onSpeechRecognizeResult",null),a.Jodit.plugins.add("speech-recognize",d)},22227:function(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'}},function(e){return e(e.s=31262)}])});
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(self,function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[882],{75143:function(e,t,n){"use strict";var s=n(22289),i=n(85932),o=n(7909),r=n(36400),u=n(29434),c=n(5266),l=n(97743),a=n(68097),p=n(22227),h=n.n(p);c.Config.prototype.speechRecognize={api:void 0!==l.SpeechRecognition?l.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},u.Icon.set("speech-recognize",h()),c.Config.prototype.controls.speechRecognize={isVisible:e=>!!e.o.speechRecognize.api,isActive(e,t){let n=(0,r.dataBind)(e,"speech");return!!n?.isEnabled},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:n,control:u}){let{api:c,lang:l,continuous:p,interimResults:h,sound:d}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,r.dataBind)(e,"speech");if(!m){let t=new c;(m=new a.RecognizeManager(e.async,t)).lang=(0,i.isString)(l)?l:(0,o.attr)(e.od.documentElement,"lang")??void 0,m.continuous=p,m.interimResults=h,m.sound=d,(0,r.dataBind)(e,"speech",m),m.on("pulse",e=>{n.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,r.dataBind)(e,"speech",null),m.destruct()})}if(u.args){let e=u.args[0];if((0,s.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&n.setMod("pulse",!0),n.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,n){let s=(0,r.dataBind)(e,"speech"),i=s?.[t]??e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${i?"checked":""} class='jodit-checkbox' type='checkbox'> ${n}</span>`},mods:{stroke:!1}}},97743:function(e,t,n){"use strict";var s=n(81937);let i=s.globalWindow?s.globalWindow.SpeechRecognition||s.globalWindow.webkitSpeechRecognition:void 0;n.d(t,["SpeechRecognition",0,i])},8962:function(e,t,n){"use strict";function s(e,t){let[n,s]=t.split("::");"open"===n.toLowerCase()&&s&&/^(javascript:|data:|vbscript:)/i.test(s.trim())||e.execCommand(n,null,s)}n.d(t,{execSpellCommand:function(){return s}})},68097:function(e,t,n){"use strict";n.d(t,{RecognizeManager:function(){return c}});var s=n(25045),i=n(31635),o=n(84839),r=n(60216),u=n(32560);class c extends r.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,u.closeSound)(this),c._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,c._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let n=e.results.item(t);if(n.length){let{transcript:e}=n.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,u.sound)(this,{frequency:e})}constructor(e,t){super(),(0,s._)(this,"async",void 0),(0,s._)(this,"_lang",void 0),(0,s._)(this,"_continuous",void 0),(0,s._)(this,"_interimResults",void 0),(0,s._)(this,"sound",void 0),(0,s._)(this,"_isEnabled",void 0),(0,s._)(this,"_restartTimeout",void 0),(0,s._)(this,"_onSpeechStart",void 0),(0,s._)(this,"_api",void 0),(0,s._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,c._instances.add(this)}}(0,s._)(c,"_instances",new Set),(0,i.__decorate)([o.autobind],c.prototype,"_onResults",null),(0,i.__decorate)([o.autobind],c.prototype,"_onProgress",null),(0,i.__decorate)([o.autobind],c.prototype,"_onError",null)},32560:function(e,t,n){"use strict";n.d(t,{closeSound:function(){return r},sound:function(){return o}});var s=n(81937);let i=new WeakMap;function o(e,{sec:t=.1,frequency:n=440,gain:r=.1,type:u="sine"}={}){let c=function(e){if(!s.globalWindow)return null;let t=i.get(e);if(t&&"closed"!==t.state)return t;let n=s.globalWindow.AudioContext||s.globalWindow.webkitAudioContext;if(!n)return null;let o=new n;return i.set(e,o),o}(e);if(!c)return;let l=c.createGain(),a=c.createOscillator();a.type=u,a.frequency.value=n,l.gain.value=r,a.connect(l),l.connect(c.destination),a.start(),a.stop(c.currentTime+t)}function r(e){let t=i.get(e);t&&(i.delete(e),"closed"!==t.state&&t.close())}},19922:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},20759:function(e){e.exports={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"}},22350:function(e){e.exports={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},97509:function(e){e.exports={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},49668:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},33276:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"}},43517:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"}},8858:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},22922:function(e){e.exports={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"}},81900:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},43219:function(e,t,n){"use strict";n.r(t),n.d(t,{ar:function(){return s||(s=n.t(E,2))},cs_cz:function(){return i||(i=n.t(I,2))},de:function(){return o||(o=n.t(P,2))},es:function(){return r||(r=n.t(T,2))},fa:function(){return u||(u=n.t(j,2))},fi:function(){return c||(c=n.t(C,2))},fr:function(){return l||(l=n.t(V,2))},he:function(){return a||(a=n.t(W,2))},hu:function(){return p||(p=n.t(D,2))},id:function(){return h||(h=n.t(M,2))},it:function(){return d||(d=n.t(L,2))},ja:function(){return m||(m=n.t(B,2))},ko:function(){return _||(_=n.t(A,2))},mn:function(){return g||(g=n.t(H,2))},nl:function(){return f||(f=n.t(q,2))},no:function(){return R||(R=n.t(F,2))},pl:function(){return S||(S=n.t(Z,2))},pt_br:function(){return z||(z=n.t(O,2))},ru:function(){return v||(v=n.t($,2))},sk:function(){return w||(w=n.t(G,2))},tr:function(){return b||(b=n.t(N,2))},ua:function(){return x||(x=n.t(J,2))},zh_cn:function(){return k||(k=n.t(K,2))},zh_tw:function(){return y||(y=n.t(Q,2))}});var s,i,o,r,u,c,l,a,p,h,d,m,_,g,f,R,S,z,v,w,b,x,k,y,E=n(19922),I=n(20759),P=n(22350),T=n(97509),j=n(49668),C=n(33276),V=n(43517),W=n(8858),D=n(22922),M=n(81900),L=n(35420),B=n(18712),A=n(73363),H=n(74762),q=n(73759),F=n(72850),Z=n(37161),O=n(62896),$=n(39996),G=n(62415),N=n(93423),J=n(10179),K=n(62547),Q=n(29475)},35420:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},18712:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},73363:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},74762:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},73759:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},72850:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},37161:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},62896:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"}},39996:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},62415:function(e){e.exports={newline:"nový riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpoznávanie reči",Sound:"Zvuk","Interim Results":"Predbežné výsledky"}},93423:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"}},10179:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},62547:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},29475:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},31262:function(e,t,n){"use strict";n.r(t),n.d(t,{SpeechRecognizeNative:function(){return d}});var s=n(25045),i=n(31635),o=n(68616),r=n(23211),u=n(28077),c=n(71125),l=n(91206);n(75143);var a=n(73302),p=n(8962),h=n(43219);class d extends l.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,u.extendLang)(h),(0,c.keys)(t,!1).forEach(n=>{n.split("|").forEach(s=>{s=s.trim().toLowerCase(),this._commandToWord[s]=t[n];let i=e.i18n(s);i!==s&&i.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[n].trim()})})}))}beforeDestruct(e){r.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),r.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{r.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),r.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:n}=t;if(!this._checkCommand(e)){let{range:s}=n,i=n.current();if(n.isCollapsed()&&r.Dom.isText(i)&&r.Dom.isOrContains(t.editor,i)&&i.nodeValue){let o=i.nodeValue;i.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,s.setStartAfter(i),n.selectRange(s),t.synchronizeValues()}else n.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,p.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,s._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,s._)(this,"messagePopup",void 0),(0,s._)(this,"__hidePopupTimeout",void 0),(0,s._)(this,"_commandToWord",{})}}(0,i.__decorate)([(0,o.watch)(":speechRecognizeProgressResult")],d.prototype,"onSpeechRecognizeProgressResult",null),(0,i.__decorate)([(0,o.watch)(":speechRecognizeResult")],d.prototype,"onSpeechRecognizeResult",null),a.Jodit.plugins.add("speech-recognize",d)},22227:function(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'}},function(e){return e(31262)}])});
|
package/es2021.en/jodit.css
CHANGED