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 63d3e6c570728807ee2985274f31eefe9f9c3ab7
parent ce8d6666ed3e68b9f975c6f3eb352b47b9a49de1
Author: unitehenry <unitehenry@gmail.com>
Date:   Thu, 24 Oct 2019 08:32:52 -0400

file invalid animation color

Diffstat:
Msrc/striveneditor.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -881,7 +881,7 @@ export default class StrivenEditor { e.preventDefault(); const file = (e.dataTransfer.files.length && e.dataTransfer.files[0]); - debugger; + this.attachFile(file); } @@ -1172,11 +1172,11 @@ export default class StrivenEditor { fileInvalid() { this.options.onInvalidFile && this.options.onInvalidFile(); this.body.style.transition = "background-color .5s"; - this.body.style.backgroundColor = "#d9534f"; + this.body.style.backgroundColor = "#e3bdbd"; setTimeout(() => { this.body.style.backgroundColor = "inherit"; setTimeout(() => this.body.style.transition = "none", 500); - }, 2000); + }, 500); } openLinkMenu() {