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 f91056a3d229dde32156d88f7ee19b016caa53f2
parent e612ee50f2f63060e10a7d9bc91657538be7c298
Author: Sanjog Sharma <ssharma@milestechnologies.com>
Date:   Tue, 14 Jun 2022 09:35:21 -0400

fires change on blur when the toolbar group is open. Fixes: https://github.com/striven-erp/striven-editor/issues/150

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

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -50,7 +50,7 @@ export default class StrivenEditor { }); el.addEventListener('blur', function () { - const menus = se.editor.getElementsByClassName('se-popup-open'); + const menus = se.editor.getElementsByClassName('se-popup-open:not(.se-toolbar-group)'); const inputs = se.editor.getElementsByTagName('input'); const colorPicker = se.editor.querySelectorAll('.pcr-app.visible'); const actives = [...menus, ...colorPicker, ...inputs, se.body, se.toolbar, se.editor];