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 72bc5072361bec9d77109ee52fde6697e4d9180b
parent 34a561e09ccc7513e63dbcfd5dd5e4fc839b560a
Author: Eric Butler <ebutler@striven.com>
Date:   Sun, 15 Jan 2023 16:09:20 -0500

Fix for image edit menu not appearing after pasting an image

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

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1013,6 +1013,7 @@ export default class StrivenEditor { se.overflow(); }, 0) }).finally(()=>{ + se.makeImagesClickable(); afterPaste(); }); return true; @@ -1521,6 +1522,7 @@ export default class StrivenEditor { // Check if we are inserting a new image or editing an existing one let imageToEdit = se.body.querySelector(".se-image-to-edit"); if (!imageToEdit) { + // No editing image found, so this is an insert. Insert the image. if (se.browser.isFirefox() || se.browser.isEdge()) { document.execCommand('insertImage', false, linkValue);