Hello,
I've configured CKEditor to launch upon designated elements when an element has focus and then update the element and remove itself upon blur. However, when a dialog or context menu is launched, CKEditor loses focus, but I don't want it to destroy itself in these cases. This works fine when dialogs have focus, but I can't seem to figure out how to see if the contextMenu has focus. Here's my code, thus far -- the in_cmenu variable is a placeholder to show the logic:
Any suggestions?
Thanks,
Paul
I've configured CKEditor to launch upon designated elements when an element has focus and then update the element and remove itself upon blur. However, when a dialog or context menu is launched, CKEditor loses focus, but I don't want it to destroy itself in these cases. This works fine when dialogs have focus, but I can't seem to figure out how to see if the contextMenu has focus. Here's my code, thus far -- the in_cmenu variable is a placeholder to show the logic:
ckeditor.on('blur', function(e){ // if there is a dialog or right-click menu, the ckeditor blurs, we don't want to destroy in that case if(CKEDITOR.dialog.getCurrent() == null && !in_cmenu){ admin_ui_removeeditor(idname); } });
Any suggestions?
Thanks,
Paul
Re: A way to tell when focus is in context menu?
Anyone have any ideas?