commit 4d0b14232dab238842776979af9e940a0192553a
parent 980d5773b8b5fb8b65035c871dbb624df091caa0
Author: unitehenry <unitehenry@gmail.com>
Date: Fri, 1 Nov 2019 16:34:19 -0400
onValidFile
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
@@ -1,7 +1,7 @@
{
"name": "@striven-erp/striven-editor",
"private": false,
- "version": "2.4.0",
+ "version": "2.4.3",
"description": "The lightweight Striven WYSIWYG editor built with pure JavaScript.",
"main": "./dist",
"scripts": {
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -1174,6 +1174,7 @@ export default class StrivenEditor {
if (this.validateFile(file)) {
this.files.push(file);
this.createFileElement(file.name, this.formatBytes(file.size));
+ this.options.onValidFile && this.option.onValidFile();
} else {
this.fileInvalid();
}