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 66c9f4e80d12b718ae7a8b8bb4ed609e80b7d8a5
parent 13426c7a9bf050f6438b4ccd2f8e5bd7fe38616e
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri, 22 Nov 2019 10:37:07 -0500

fire oninput

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

diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "@striven-erp/striven-editor", "private": false, - "version": "2.7.2", + "version": "2.7.3", "description": "The lightweight zero-dependency Striven WYSIWYG editor.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -475,6 +475,7 @@ export default class StrivenEditor { } } + this.body.oninput(); this.overflow(); }; @@ -616,9 +617,6 @@ export default class StrivenEditor { this.range.insertNode(link); this.range.selectNode(link); this.range.collapse(); - - // trigger input event - this.body.oninput(); } } @@ -628,6 +626,9 @@ export default class StrivenEditor { [...bodyLinks].forEach(link => (link.contentEditable = 'false')); } + // trigger input event + this.body.oninput(); + linkMenuFormInput.value = ""; this.closeLinkMenu(); } else {