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 aae01f0487a58435c0199121593b6caf96d021c5
parent 12f1d3108666cb1b35c06530ba5eccbef2174d4d
Author: unitehenry <unitehenry@gmail.com>
Date:   Thu, 31 Oct 2019 13:21:54 -0400

extension hot fix

Diffstat:
Mpackage.json | 2+-
Msrc/striveneditor.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "@striven-erp/striven-editor", "private": false, - "version": "2.3.0", + "version": "2.3.1", "description": "The lightweight Striven WYSIWYG editor built with pure JavaScript.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1085,7 +1085,7 @@ export default class StrivenEditor { } validateFile(file) { - const extension = (file && file.type.split('/').pop()); + const extension = (file && file.name.split('.').pop()); if (extension) { return this.options.extensions.includes(`.${extension}`); } else {