jodit-pro-react 5.5.74 → 5.5.75
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.
|
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
193
193
|
var init_constants = __esm({
|
|
194
194
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
195
195
|
"use strict";
|
|
196
|
-
APP_VERSION = "4.13.
|
|
196
|
+
APP_VERSION = "4.13.15";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -16851,6 +16851,7 @@ Config.prototype.enableDragAndDropFileToEditor = true;
|
|
|
16851
16851
|
Config.prototype.uploader = {
|
|
16852
16852
|
url: "",
|
|
16853
16853
|
insertImageAsBase64URI: false,
|
|
16854
|
+
showTabInFileSelector: true,
|
|
16854
16855
|
imagesExtensions: [
|
|
16855
16856
|
"jpg",
|
|
16856
16857
|
"jpeg",
|
|
@@ -21115,7 +21116,7 @@ var FileSelectorWidget = (editor, callbacks, elm, close, isImage = true) => {
|
|
|
21115
21116
|
let currentImage;
|
|
21116
21117
|
const tabs = [];
|
|
21117
21118
|
const options2 = editor.o.uploader;
|
|
21118
|
-
if (callbacks.upload && (options2.url || options2.insertImageAsBase64URI || options2.customUploadFunction)) {
|
|
21119
|
+
if (callbacks.upload && options2.showTabInFileSelector !== false && (options2.url || options2.insertImageAsBase64URI || options2.customUploadFunction)) {
|
|
21119
21120
|
const dragBox = editor.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${editor.i18n(isImage ? "Drop image" : "Drop file")}</strong><span><br>${editor.i18n("or click")}</span><input type="file" accept="${isImage ? "image/*" : "*"}" tabindex="-1" dir="auto" multiple=""/></div>`);
|
|
21120
21121
|
editor.uploader.bind(dragBox, (resp) => {
|
|
21121
21122
|
const handler = isFunction(callbacks.upload) ? callbacks.upload : options2.defaultHandlerSuccess;
|