Question

I have radactor v9.0.4 ( http://imperavi.com/redactor/ ) and I have a problem with blurCallback event, because editor trigger this event when I click on his own toolbar.

I want to use blur event beacuse when user click somewhere outside editor I want to turn it off. But click on, for example, bold text blurCallback calls. Sample code with my workaround

$that.redactor({
    blurCallback: function(e)
    {
        if(e.relatedTarget !== null)return;

        // turn off editor
    }
});

As you can see I've tried to do this with relatedTarget but this won't work on firefox. Do you have any ideas how I can fix that?

Was it helpful?

Solution

This should be fixed in Redactor version 9.1.6. See changelog for more details.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top