I have widgets in the editor which are basically SPAN elements with
onclick function to toggle ON/OFF. This works when editor is focused. When editor is not focused, clicking such widget focuses editor instead and I have to click again so the widget registers click (so click twice).
Anyone has any idea if there is any way to register the click in widget with first click?