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 831e38831160c1510b40edc0933e1b420cd5972d
parent c2ce86d43fec83373afe514ff832334c6d0742cb
Author: Eric Butler <ebutler@striven.com>
Date:   Wed,  1 Mar 2023 12:08:24 -0500

Merge branch 'dev' of github.com:striven-erp/striven-editor into dev

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

diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "@striven-erp/striven-editor", "private": false, - "version": "3.13.0", + "version": "3.14.0", "description": "The editor used for the Striven ERP system.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1337,9 +1337,8 @@ export default class StrivenEditor { } // trigger input event - if (se.body.oninput) { - se.body.oninput(); - } + let inpEvent = new Event('input',{cancelable:true, bubbles:true}); + se.body.dispatchEvent(inpEvent); se.closeLinkMenu(); } else { @@ -3141,12 +3140,10 @@ export default class StrivenEditor { } this.makeLinksClickable(links); - // Trigger oninput event - if (se.body.oninput) { - se.body.oninput(); - } - // setTimeout(() => { - // }, 10); + // Trigger input event + let inpEvent = new Event('input',{cancelable:true, bubbles:true}); + se.body.dispatchEvent(inpEvent); + } /*