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 406cbf9f12846d34f7996d55fc58ed88a647b75c
parent bb34ee3e07441d658a19a2bb86824ad00e520de1
Author: Henry Unite <unitehenry@gmail.com>
Date:   Mon, 14 Sep 2020 12:06:28 -0400

Merge branch 'dev'

Diffstat:
Mdemo/src/test.js | 4++--
Mpackage.json | 2+-
Msrc/striveneditor.js | 2++
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/demo/src/test.js b/demo/src/test.js @@ -50,7 +50,7 @@ describe('Regression Tests', () => { }); - it('apply font style to content', (done) => { + it('should apply font style to content', (done) => { const se = getEditor(); se.setContent('<p>Change me to Verdana</p>'); @@ -68,7 +68,7 @@ describe('Regression Tests', () => { }); - it('apply font size to content', (done) => { + it('should apply font size to content', (done) => { const se = getEditor(); se.setContent('<p>Change me to 36pt size</p>'); diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "@striven-erp/striven-editor", "private": false, - "version": "3.7.4", + "version": "3.7.5", "description": "The editor used for the Striven ERP system.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1693,6 +1693,8 @@ export default class StrivenEditor { * @param {Number} size Size of the file in bytes */ createFileElement(name, size) { + const se = this; + const fileEl = document.createElement('div'); const fileNameEl = document.createElement('p'); const fileSizeEl = document.createElement('p');