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 f7464344489cc0a3b05632dc217f1a78bf407ee7
parent ed31fb773460ee73abc66f9d1ee21ef8915be075
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri,  1 Nov 2019 08:40:23 -0400

firefox edge support

Diffstat:
Mpackage.json | 2+-
Msrc/striveneditor.js | 6+++++-
2 files changed, 6 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.1", + "version": "2.3.2", "description": "The lightweight Striven WYSIWYG editor built with pure JavaScript.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -258,7 +258,11 @@ export default class StrivenEditor { this.toolbarOptions.forEach((opt) => { const path = opt.getElementsByTagName('path')[0]; if (path.getAttribute('fill') === this.options.activeOptionColor) { - document.execCommand(opt.id.split('-')[1], true); + if(this.browser.isFirefox() || this.browser.isEdge()) { + document.execCommand(opt.id.split('-')[1]); + } else { + document.execCommand(opt.id.split('-')[1], true); + } } }) }