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: 61,743Questions: 1Answers: 10,111 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.