Updated edit extension
This commit is contained in:
parent
0499868f52
commit
9b72c5c35b
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue