blur() Focus on Open

blur() Focus on Open

btreebtree Posts: 99Questions: 14Answers: 11

Hi guys,

I want no focus on the first input field when I open the editor. What is the best approach?

This code does not work:

editor.on( 'open', function( e, mode, action ) {
    $('input').blur();
});

Cheers
Hannes

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Use the focus option of the form-options object.

    Allan

  • btreebtree Posts: 99Questions: 14Answers: 11

    Great thanks, did not find this option!

    Thanks
    Hannes

This discussion has been closed.