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 698c7ca8746625229a98517c906c1ecfb3778844
parent 2c84290ebcc0da588d3de263ba04602995008f6e
Author: unitehenry <unitehenry@gmail.com>
Date:   Wed, 13 Nov 2019 16:00:16 -0500

manually trigger oninput

Diffstat:
Mpackage.json | 2+-
Msrc/striveneditor.js | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "@striven-erp/striven-editor", "private": false, - "version": "2.5.9", + "version": "2.6.0", "description": "The lightweight zero-dependency Striven WYSIWYG editor.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -595,6 +595,9 @@ export default class StrivenEditor { this.range.insertNode(link); this.range.selectNode(link); this.range.collapse(); + + // trigger input event + this.body.oninput(); } } @@ -992,6 +995,7 @@ export default class StrivenEditor { hideOption('insertOrderedList'); hideOption('textAlign'); hideOption('removeFormat'); + if ( this.toolbarTemplate ? (this.toolbarTemplate.offsetWidth + this.toolbarOptionsGroup.offsetWidth) > this.editor.offsetWidth :