Updated edit extension

This commit is contained in:
markseu 2020-01-07 16:10:23 +01:00
parent 0499868f52
commit 9b72c5c35b

View file

@ -826,7 +826,7 @@ yellow.edit = {
request.onload = function() { if (this.status==200) { thisObject.uploadFileDone.call(thisObject, elementText, this.responseText); } else { thisObject.uploadFileError.call(thisObject, elementText, this.responseText); } };
request.send(formData);
} else {
var textError = extensions.indexOf(extension)!=-1 ? "file too big!" : "format not supported!";
var textError = extensions.indexOf(extension)!=-1 ? "file too big!" : "file format not supported!";
var textNew = "[Can't upload file '"+file.name+"', "+textError+"]";
yellow.editor.setMarkdown(elementText, textNew, "insert");
}