jodit 4.5.20 → 4.6.2
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 +42 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +46 -13
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +46 -13
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.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 +2 -2
- package/es2021/jodit.js +46 -13
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +46 -13
- package/es2021.en/jodit.min.js +2 -2
- 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/415.fat.min.js +1 -1
- package/es5/415.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +51 -14
- 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/esm/core/constants.d.ts +7 -0
- package/esm/core/constants.js +32 -12
- package/esm/core/helpers/utils/append-script.js +1 -1
- package/esm/core/plugin/helpers/load.js +2 -0
- package/esm/core/view/view.d.ts +4 -0
- package/esm/core/view/view.js +10 -1
- package/esm/types/view.d.ts +6 -1
- package/package.json +1 -1
- package/types/core/constants.d.ts +7 -0
- package/types/core/view/view.d.ts +4 -0
- package/types/types/view.d.ts +6 -1
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.
|
|
4
|
+
* Version: v4.6.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -7876,6 +7876,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7876
7876
|
/* harmony export */ ACCURACY: function() { return /* binding */ ACCURACY; },
|
|
7877
7877
|
/* harmony export */ APP_VERSION: function() { return /* binding */ APP_VERSION; },
|
|
7878
7878
|
/* harmony export */ BASE_PATH: function() { return /* binding */ BASE_PATH; },
|
|
7879
|
+
/* harmony export */ BASE_PATH_IS_MIN: function() { return /* binding */ BASE_PATH_IS_MIN; },
|
|
7879
7880
|
/* harmony export */ BR: function() { return /* binding */ BR; },
|
|
7880
7881
|
/* harmony export */ CLIPBOARD_ID: function() { return /* binding */ CLIPBOARD_ID; },
|
|
7881
7882
|
/* harmony export */ COMMAND_KEYS: function() { return /* binding */ COMMAND_KEYS; },
|
|
@@ -7944,7 +7945,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7944
7945
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
7945
7946
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
7946
7947
|
*/
|
|
7947
|
-
const APP_VERSION = "4.
|
|
7948
|
+
const APP_VERSION = "4.6.2";
|
|
7948
7949
|
// prettier-ignore
|
|
7949
7950
|
const ES = "es2021";
|
|
7950
7951
|
const IS_ES_MODERN = true;
|
|
@@ -8116,17 +8117,30 @@ const KEY_ALIASES = {
|
|
|
8116
8117
|
win: 'meta',
|
|
8117
8118
|
windows: 'meta'
|
|
8118
8119
|
};
|
|
8119
|
-
const
|
|
8120
|
-
|
|
8121
|
-
|
|
8120
|
+
const removeScriptName = (src) => {
|
|
8121
|
+
const parts = src.split('/');
|
|
8122
|
+
const isMin = true
|
|
8123
|
+
? false
|
|
8124
|
+
: 0;
|
|
8125
|
+
if (/\.js/.test(parts[parts.length - 1])) {
|
|
8126
|
+
return {
|
|
8127
|
+
basePath: parts.slice(0, parts.length - 1).join('/') + '/',
|
|
8128
|
+
isMin
|
|
8129
|
+
};
|
|
8122
8130
|
}
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
return parts.slice(0, parts.length - 1).join('/') + '/';
|
|
8127
|
-
}
|
|
8128
|
-
return s;
|
|
8131
|
+
return {
|
|
8132
|
+
basePath: src,
|
|
8133
|
+
isMin
|
|
8129
8134
|
};
|
|
8135
|
+
};
|
|
8136
|
+
const { basePath, isMin } = (() => {
|
|
8137
|
+
if (typeof document === 'undefined') {
|
|
8138
|
+
return {
|
|
8139
|
+
basePath: '',
|
|
8140
|
+
isMin: Boolean(false)
|
|
8141
|
+
};
|
|
8142
|
+
}
|
|
8143
|
+
const script = globalDocument.currentScript;
|
|
8130
8144
|
if (script) {
|
|
8131
8145
|
return removeScriptName(script.src);
|
|
8132
8146
|
}
|
|
@@ -8134,8 +8148,16 @@ const BASE_PATH = (() => {
|
|
|
8134
8148
|
if (scripts && scripts.length) {
|
|
8135
8149
|
return removeScriptName(scripts[scripts.length - 1].src);
|
|
8136
8150
|
}
|
|
8137
|
-
return globalWindow.location.href;
|
|
8151
|
+
return removeScriptName(globalWindow.location.href);
|
|
8138
8152
|
})();
|
|
8153
|
+
/**
|
|
8154
|
+
* Path to the current script
|
|
8155
|
+
*/
|
|
8156
|
+
const BASE_PATH = basePath;
|
|
8157
|
+
/**
|
|
8158
|
+
* Current script is minified
|
|
8159
|
+
*/
|
|
8160
|
+
const BASE_PATH_IS_MIN = isMin;
|
|
8139
8161
|
const TEMP_ATTR = 'data-jodit-temp';
|
|
8140
8162
|
const lang = {};
|
|
8141
8163
|
const CLIPBOARD_ID = 'clipboard';
|
|
@@ -10762,8 +10784,8 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
|
|
|
10762
10784
|
async: true,
|
|
10763
10785
|
src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
|
|
10764
10786
|
});
|
|
10787
|
+
jodit.e.one(script, 'error', reject).one(script, 'load', resolve);
|
|
10765
10788
|
jodit.od.body.appendChild(script);
|
|
10766
|
-
jodit.e.on(script, 'error', reject).on(script, 'load', resolve);
|
|
10767
10789
|
});
|
|
10768
10790
|
});
|
|
10769
10791
|
/**
|
|
@@ -13118,11 +13140,13 @@ async function loadStyle(jodit, pluginName) {
|
|
|
13118
13140
|
*/
|
|
13119
13141
|
function getFullUrl(jodit, name, js) {
|
|
13120
13142
|
name = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_2__/* .kebabCase */ .k)(name);
|
|
13143
|
+
const min = jodit.minified ? '.min' : '';
|
|
13121
13144
|
return (jodit.basePath +
|
|
13122
13145
|
'plugins/' +
|
|
13123
13146
|
name +
|
|
13124
13147
|
'/' +
|
|
13125
13148
|
name +
|
|
13149
|
+
min +
|
|
13126
13150
|
'.' +
|
|
13127
13151
|
(js ? 'js' : 'css'));
|
|
13128
13152
|
}
|
|
@@ -33051,6 +33075,15 @@ let View = View_1 = class View extends jodit_core_component_component__WEBPACK_I
|
|
|
33051
33075
|
}
|
|
33052
33076
|
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__.BASE_PATH;
|
|
33053
33077
|
}
|
|
33078
|
+
/**
|
|
33079
|
+
* Plugin autoloader should load minified version of the file
|
|
33080
|
+
*/
|
|
33081
|
+
get minified() {
|
|
33082
|
+
if (this.o.minified !== undefined) {
|
|
33083
|
+
return this.o.minified;
|
|
33084
|
+
}
|
|
33085
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_3__.BASE_PATH_IS_MIN;
|
|
33086
|
+
}
|
|
33054
33087
|
/**
|
|
33055
33088
|
* Return a default timeout period in milliseconds for some debounce or throttle functions.
|
|
33056
33089
|
* By default, `{history.timeout}` options
|