elRTE steals cursor focus when loading

Added by Jake Wilson 9 months ago

I have the following:

$(document).ready(function(){
$('textarea#whatever').elrte();
$('#myinput').focus();
});

But when the page loads, the elRTE textarea has the focus. Is there anything that can be done to keep it from stealing focus when it loads?


Replies (1)

RE: elRTE steals cursor focus when loading - Added by Dmitry Levashov 9 months ago

setTimeout(function() {
  $('#myinput').focus();
}, 300)

(1-1/1)