≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Focus on first input field - Editor form
Focus on first input field - Editor form
balnys
Posts: 10
Questions: 1
Answers: 0
October 2013
edited October 2013
in
Editor
Hello,
Is where are a proper way to disable first input field's focus on editor form?
Thank you.
Replies
allan
Posts: 65,813
Questions: 1
Answers: 10,949
Site admin
October 2013
So that is doesn't focus when the form is opened?
Currently there isn't a build in way of disabling that, but you could use an event to blur the default focus:
[code]
editor.on('onOpen', function () {
document.activeElement.blur();
} );
[/code]
I think should do it, although I'm on an iPad atm so can't test it just now - will do so when I get back to my desktop.
Allan
This discussion has been closed.
Replies
Currently there isn't a build in way of disabling that, but you could use an event to blur the default focus:
[code]
editor.on('onOpen', function () {
document.activeElement.blur();
} );
[/code]
I think should do it, although I'm on an iPad atm so can't test it just now - will do so when I get back to my desktop.
Allan