Keep elRTE from stealing focus?

Added by Jake Wilson 10 months ago

My document loading function is like so:

$(document).ready(function(){

  $('textarea#offer_wysiwyg').elrte();

  $('input#myinput').focus();

});

But the elRTE editor is still focused when the page loads. Is there an option to disable the auto-focus'ing of elRTE when it's created?


Replies (1)

RE: Keep elRTE from stealing focus? - Added by Troex Nevelin 10 months ago

elRTE need some time to load, so you need to change focus after elRTE init, try this:

setTimeout("$('input#myinput').focus();", 500);

As an option it would be useful #645

(1-1/1)