jodit 4.19.12 → 4.19.14
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 +6 -6
- package/es2015/jodit.js +138 -85
- package/es2015/jodit.min.js +3 -3
- 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 +4 -4
- package/es2021/jodit.js +138 -85
- package/es2021/jodit.min.js +4 -4
- 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 +4 -4
- package/es2021.en/jodit.js +114 -61
- package/es2021.en/jodit.min.js +4 -4
- 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 +162 -88
- 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/global.d.ts +6 -0
- package/esm/core/global.js +21 -4
- package/esm/core/helpers/html/safe-html.js +26 -0
- package/esm/jodit.d.ts +4 -0
- package/esm/jodit.js +5 -1
- package/esm/languages.js +7 -1
- package/package.json +1 -1
- package/types/core/global.d.ts +6 -0
- package/types/jodit.d.ts +4 -0
package/es2021.en/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.19.
|
|
4
|
+
* Version: v4.19.14
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1824,7 +1824,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1824
1824
|
* ```
|
|
1825
1825
|
* @packageDocumentation
|
|
1826
1826
|
* @module constants
|
|
1827
|
-
*/ const APP_VERSION = "4.19.
|
|
1827
|
+
*/ const APP_VERSION = "4.19.14";
|
|
1828
1828
|
// prettier-ignore
|
|
1829
1829
|
const ES = "es2021";
|
|
1830
1830
|
const IS_ES_MODERN = true;
|
|
@@ -4780,16 +4780,18 @@ class EventHandlersStore {
|
|
|
4780
4780
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
4781
4781
|
/* harmony export */ });
|
|
4782
4782
|
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
|
|
4783
|
-
/* harmony import */ var
|
|
4784
|
-
/* harmony import */ var
|
|
4785
|
-
/* harmony import */ var
|
|
4786
|
-
/* harmony import */ var
|
|
4787
|
-
/* harmony import */ var
|
|
4788
|
-
/* harmony import */ var
|
|
4789
|
-
/* harmony import */ var
|
|
4790
|
-
/* harmony import */ var
|
|
4791
|
-
/* harmony import */ var
|
|
4792
|
-
/* harmony import */ var
|
|
4783
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
|
|
4784
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
|
|
4785
|
+
/* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31534);
|
|
4786
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74264);
|
|
4787
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7909);
|
|
4788
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80991);
|
|
4789
|
+
/* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(421);
|
|
4790
|
+
/* harmony import */ var jodit_core_helpers_utils_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78048);
|
|
4791
|
+
/* harmony import */ var jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(85305);
|
|
4792
|
+
/* harmony import */ var _event_emitter_global__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(42689);
|
|
4793
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(81937);
|
|
4794
|
+
/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27795);
|
|
4793
4795
|
/*!
|
|
4794
4796
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4795
4797
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4807,6 +4809,8 @@ class EventHandlersStore {
|
|
|
4807
4809
|
|
|
4808
4810
|
|
|
4809
4811
|
|
|
4812
|
+
|
|
4813
|
+
|
|
4810
4814
|
const instances = {};
|
|
4811
4815
|
let counter = 1;
|
|
4812
4816
|
const uuids = new Set();
|
|
@@ -4824,26 +4828,40 @@ const uuids = new Set();
|
|
|
4824
4828
|
uuids.add(uid);
|
|
4825
4829
|
return uid;
|
|
4826
4830
|
}
|
|
4827
|
-
const pluginSystem = new
|
|
4831
|
+
const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_9__.PluginSystem({
|
|
4828
4832
|
getContainer
|
|
4829
4833
|
});
|
|
4830
4834
|
const modules = {};
|
|
4831
|
-
|
|
4835
|
+
// A CommonJS pack imported as a namespace carries the dictionary in `default`; a translation of the word is a string
|
|
4836
|
+
const unwrapModule = (pack)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack) && (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack.default) ? pack.default : pack;
|
|
4837
|
+
/**
|
|
4838
|
+
* Merge language packs into the global `lang` registry
|
|
4839
|
+
*
|
|
4840
|
+
* `__proto__`, `constructor` and `prototype` are skipped on both levels, so a
|
|
4841
|
+
* pack parsed from untrusted JSON cannot reach `Object.prototype` (CWE-1321).
|
|
4842
|
+
*/ const extendLang = (langs)=>{
|
|
4832
4843
|
Object.keys(langs).forEach((key)=>{
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4844
|
+
const pack = unwrapModule(langs[key]);
|
|
4845
|
+
if ((0,jodit_core_helpers_utils_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(key) || !(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(pack)) {
|
|
4846
|
+
return;
|
|
4847
|
+
}
|
|
4848
|
+
if (!Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_11__.lang, key) || !(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(_constants__WEBPACK_IMPORTED_MODULE_11__.lang[key])) {
|
|
4849
|
+
_constants__WEBPACK_IMPORTED_MODULE_11__.lang[key] = {};
|
|
4837
4850
|
}
|
|
4851
|
+
Object.keys(pack).forEach((name)=>{
|
|
4852
|
+
if (!(0,jodit_core_helpers_utils_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_8__.isUnsafeProtoKey)(name)) {
|
|
4853
|
+
_constants__WEBPACK_IMPORTED_MODULE_11__.lang[key][name] = pack[name];
|
|
4854
|
+
}
|
|
4855
|
+
});
|
|
4838
4856
|
});
|
|
4839
4857
|
};
|
|
4840
4858
|
const boxes = new WeakMap();
|
|
4841
4859
|
/**
|
|
4842
4860
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
4843
4861
|
*/ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
|
|
4844
|
-
const name = (0,
|
|
4862
|
+
const name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_7__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
4845
4863
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
4846
|
-
const view = (0,
|
|
4864
|
+
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
4847
4865
|
let body;
|
|
4848
4866
|
if (!data[key]) {
|
|
4849
4867
|
let c = view.c;
|
|
@@ -4854,18 +4872,18 @@ const boxes = new WeakMap();
|
|
|
4854
4872
|
body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
4855
4873
|
}
|
|
4856
4874
|
const box = c.element(tag, {
|
|
4857
|
-
className: `jodit jodit-${(0,
|
|
4875
|
+
className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(name)}-container jodit-box`
|
|
4858
4876
|
});
|
|
4859
4877
|
// Let a strict CSP accept the injected <style>/<script> box
|
|
4860
4878
|
if (view.o.nonce && (tag === 'style' || tag === 'script')) {
|
|
4861
|
-
(0,
|
|
4879
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(box, 'nonce', view.o.nonce);
|
|
4862
4880
|
}
|
|
4863
4881
|
box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
4864
|
-
|
|
4882
|
+
_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.append(body, box);
|
|
4865
4883
|
data[key] = box;
|
|
4866
4884
|
jodit.hookStatus('beforeDestruct', ()=>{
|
|
4867
4885
|
view.events.off(box);
|
|
4868
|
-
|
|
4886
|
+
_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.safeRemove(box);
|
|
4869
4887
|
delete data[key];
|
|
4870
4888
|
if (Object.keys(data).length) {
|
|
4871
4889
|
boxes.delete(jodit);
|
|
@@ -4882,15 +4900,15 @@ const boxes = new WeakMap();
|
|
|
4882
4900
|
* Get root element for view
|
|
4883
4901
|
* @internal
|
|
4884
4902
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
4885
|
-
return o.popupRoot ?? o.shadowRoot ??
|
|
4903
|
+
return o.popupRoot ?? o.shadowRoot ?? _dom__WEBPACK_IMPORTED_MODULE_12__.Dom.closest(container, (parentElement)=>_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.isHTMLElement(parentElement) && (_dom__WEBPACK_IMPORTED_MODULE_12__.Dom.isTag(parentElement, 'dialog') || [
|
|
4886
4904
|
'fixed',
|
|
4887
4905
|
'absolute'
|
|
4888
|
-
].includes((0,
|
|
4906
|
+
].includes((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__.css)(parentElement, 'position'))), defaultRoot) ?? defaultRoot;
|
|
4889
4907
|
}
|
|
4890
4908
|
/**
|
|
4891
4909
|
* Global event emitter
|
|
4892
4910
|
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
4893
|
-
*/ const eventEmitter =
|
|
4911
|
+
*/ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_10__.eventEmitter;
|
|
4894
4912
|
|
|
4895
4913
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
4896
4914
|
/* harmony export */ "eventEmitter", 0, /* binding */ eventEmitter,
|
|
@@ -6478,6 +6496,22 @@ function isSmuggledForeignHtml(elm) {
|
|
|
6478
6496
|
'background',
|
|
6479
6497
|
'xlink:href'
|
|
6480
6498
|
];
|
|
6499
|
+
/**
|
|
6500
|
+
* SVG animation elements can write a URL attribute at run time, as
|
|
6501
|
+
* `<animate attributeName="href" values="javascript:…">` does, and the
|
|
6502
|
+
* attributes below carry the values they write.
|
|
6503
|
+
*/ const ANIMATION_TAGS = new Set([
|
|
6504
|
+
'animate',
|
|
6505
|
+
'set',
|
|
6506
|
+
'animatemotion',
|
|
6507
|
+
'animatetransform'
|
|
6508
|
+
]);
|
|
6509
|
+
const ANIMATION_VALUE_ATTRIBUTES = [
|
|
6510
|
+
'values',
|
|
6511
|
+
'from',
|
|
6512
|
+
'to',
|
|
6513
|
+
'by'
|
|
6514
|
+
];
|
|
6481
6515
|
/**
|
|
6482
6516
|
* Tags that load their URL as a *document* (scripts inside run). An SVG data
|
|
6483
6517
|
* URL is only an XSS vector here — as an `<img>` source it renders inertly.
|
|
@@ -6551,6 +6585,19 @@ function sanitizeHTMLElement(elm, { safeJavaScriptLink, removeOnError, removeEve
|
|
|
6551
6585
|
effected = true;
|
|
6552
6586
|
}
|
|
6553
6587
|
}
|
|
6588
|
+
// SMIL sets the attribute on click time, after the static check above:
|
|
6589
|
+
// `<svg><a><animate attributeName="href" values="javascript:…">` ran
|
|
6590
|
+
// in Chromium and Safari. Drop the values that hold a dangerous
|
|
6591
|
+
// scheme; `values` is a `;` list. See GHSA-6wrw-v5gj-6xg7
|
|
6592
|
+
if (ANIMATION_TAGS.has(tagName)) {
|
|
6593
|
+
for (const name of ANIMATION_VALUE_ATTRIBUTES){
|
|
6594
|
+
const value = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attrRaw)(elm, name);
|
|
6595
|
+
if (value && value.split(';').some((part)=>isDangerousUrl(part, 'a'))) {
|
|
6596
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(elm, name, null);
|
|
6597
|
+
effected = true;
|
|
6598
|
+
}
|
|
6599
|
+
}
|
|
6600
|
+
}
|
|
6554
6601
|
}
|
|
6555
6602
|
return effected;
|
|
6556
6603
|
}
|
|
@@ -20197,6 +20244,9 @@ class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_11__.ViewWithToolbar
|
|
|
20197
20244
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "constants", jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__);
|
|
20198
20245
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "instances", jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.instances);
|
|
20199
20246
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "lang", jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.lang);
|
|
20247
|
+
/**
|
|
20248
|
+
* Merge language packs into `Jodit.lang`; prototype keys are ignored
|
|
20249
|
+
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "extendLang", jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.extendLang);
|
|
20200
20250
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(Jodit, "core", {
|
|
20201
20251
|
Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_11__.Plugin
|
|
20202
20252
|
});
|
|
@@ -20241,10 +20291,11 @@ function addClassNames(className, elm) {
|
|
|
20241
20291
|
|
|
20242
20292
|
"use strict";
|
|
20243
20293
|
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
|
|
20244
|
-
/* harmony import */ var
|
|
20245
|
-
/* harmony import */ var
|
|
20246
|
-
/* harmony import */ var
|
|
20247
|
-
/* harmony import */ var
|
|
20294
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
|
|
20295
|
+
/* harmony import */ var jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41324);
|
|
20296
|
+
/* harmony import */ var jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2__);
|
|
20297
|
+
/* harmony import */ var jodit_langs_en__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63837);
|
|
20298
|
+
/* harmony import */ var jodit_langs_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53414);
|
|
20248
20299
|
/*!
|
|
20249
20300
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20250
20301
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20281,41 +20332,43 @@ function addClassNames(className, elm) {
|
|
|
20281
20332
|
|
|
20282
20333
|
|
|
20283
20334
|
|
|
20335
|
+
|
|
20284
20336
|
|
|
20285
20337
|
|
|
20286
20338
|
let exp = {};
|
|
20287
20339
|
exp = {
|
|
20288
|
-
ar: (
|
|
20289
|
-
az: (
|
|
20290
|
-
cs_cz: (
|
|
20291
|
-
de: (
|
|
20292
|
-
en:
|
|
20293
|
-
es: (
|
|
20294
|
-
fa: (
|
|
20295
|
-
fi: (
|
|
20296
|
-
fr: (
|
|
20297
|
-
he: (
|
|
20298
|
-
hu: (
|
|
20299
|
-
id: (
|
|
20300
|
-
it: (
|
|
20301
|
-
ja: (
|
|
20302
|
-
ko: (
|
|
20303
|
-
mn: (
|
|
20304
|
-
nl: (
|
|
20305
|
-
no: (
|
|
20306
|
-
pl: (
|
|
20307
|
-
pt_br: (
|
|
20308
|
-
ru: (
|
|
20309
|
-
sk: (
|
|
20310
|
-
sv: (
|
|
20311
|
-
tr: (
|
|
20312
|
-
ua: (
|
|
20313
|
-
zh_cn: (
|
|
20314
|
-
zh_tw: (
|
|
20340
|
+
ar: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20341
|
+
az: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20342
|
+
cs_cz: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20343
|
+
de: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20344
|
+
en: jodit_langs_en__WEBPACK_IMPORTED_MODULE_3__,
|
|
20345
|
+
es: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20346
|
+
fa: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20347
|
+
fi: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20348
|
+
fr: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20349
|
+
he: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20350
|
+
hu: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20351
|
+
id: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20352
|
+
it: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20353
|
+
ja: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20354
|
+
ko: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20355
|
+
mn: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20356
|
+
nl: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20357
|
+
no: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20358
|
+
pl: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20359
|
+
pt_br: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20360
|
+
ru: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20361
|
+
sk: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20362
|
+
sv: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20363
|
+
tr: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20364
|
+
ua: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20365
|
+
zh_cn: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default()),
|
|
20366
|
+
zh_tw: (jodit_langs_ar__WEBPACK_IMPORTED_MODULE_2___default())
|
|
20315
20367
|
};
|
|
20316
|
-
/* Unpack array to hash */
|
|
20317
|
-
|
|
20318
|
-
|
|
20368
|
+
/* Unpack array to hash */ // Unwrap a module (`default` is the dictionary or the packed array), but keep a dictionary whose `default` is a translation (`no.js`)
|
|
20369
|
+
const get = (value)=>value ? (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(value.default) || (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value.default) ? value.default : value : {}, hashLang = {};
|
|
20370
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(get(jodit_langs_keys__WEBPACK_IMPORTED_MODULE_4__))) {
|
|
20371
|
+
get(jodit_langs_keys__WEBPACK_IMPORTED_MODULE_4__).forEach((key, index)=>{
|
|
20319
20372
|
hashLang[index] = key;
|
|
20320
20373
|
});
|
|
20321
20374
|
}
|