striven-editor

Maintained and contributed to an open source WYSIWYG editor as an internship project that made it to production and was adopted by the company I was working at.
git clone https://unitehenry.com/git/striven-editor.git
Log | Files | Refs | README | LICENSE

commit 4d0b14232dab238842776979af9e940a0192553a
parent 980d5773b8b5fb8b65035c871dbb624df091caa0
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri,  1 Nov 2019 16:34:19 -0400

onValidFile

Diffstat:
Mpackage.json | 2+-
Msrc/striveneditor.js | 1+
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(); }