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 7ad30ab25725e2da81323818bb0c856232898e19
parent f26edadb4b7753b0c754dc7e51aa3c50fd26c070
Author: unitehenry <unitehenry@gmail.com>
Date:   Wed, 20 Nov 2019 14:59:52 -0500

prevent native image pasting

Diffstat:
Msrc/striveneditor.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

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