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 c6c9e6144ad4ffd5ee21981cb92adcca59a0e889
parent 66c9f4e80d12b718ae7a8b8bb4ed609e80b7d8a5
Author: unitehenry <unitehenry@gmail.com>
Date:   Tue, 26 Nov 2019 07:46:39 -0500

firefox snipping paste fix

Diffstat:
Msrc/striveneditor.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -404,7 +404,10 @@ export default class StrivenEditor { e.clipboardData.files.length > 0 && e.clipboardData.files[0].type.includes("image") ) { - e.preventDefault(); + + // + !this.browser.isFirefox() && e.preventDefault(); + convertImage(e.clipboardData.files[0]).then(res => { if (this.options.imageUrl) { this.getImage(res)