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 11e47f0f71a2d8b1b9a2db07bdf182587a3ee7a2
parent 96cdde2d7bbc4dc5f3303d75c8d9e8ee4f1424b0
Author: sanjogs <sanjogsharma@gmail.com>
Date:   Fri, 28 Feb 2025 10:40:45 -0500

increased timeout for computing body overflow after inserting an image

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

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -392,7 +392,6 @@ export default class StrivenEditor { toolbar.onclick = (ev) => { se.body.focus(); - ev.stopPropagation(); }; // Append Font Options @@ -3468,7 +3467,7 @@ export default class StrivenEditor { se._isImageUploading = false; setTimeout(function () { se.overflow(); - }, 100); + }, 1000); }) .catch((err) => { // Replace the temporary image with the uploaded image @@ -3481,7 +3480,7 @@ export default class StrivenEditor { se._isImageUploading = false; setTimeout(function () { se.overflow(); - }, 0); + }, 100); } resolveImageInsert();