Perhaps my question sounds somewhat generalized, so let me be more clear.
I have a text box that is hidden by blur, which should be replaced by another div. To be more specific, the above text area contains markdown code, and the div contains the analyzed version of this code.
Now I'm trying to add a formatting toolbar on top of the text box, but of course, when I click on it, a blur event is fired and the text box is hidden, which is not at all convenient.
So my question is, is it even possible to prevent the default blur behavior by clicking on the toolbar, and if so, what is the best way to do this.
Thanks so much for your time :)
source
share