Reputation: 71
Can anyone help me how to prevent auto focus in angular 2.
I don't have idea how to do it in angular 2, but I am able to do it jquery:
$('form *:input[type!=hidden]:first').focus();
Upvotes: 0
Views: 1069
Reputation: 25
While facing above issue in latest angular, to fix this issue,
i changed [init]="{" inside <editor tag to [init]="{ auto_focus:false" above step, resolved issue of setting default focuss on tinymce editor. My requirement to disable the default cursor, so that user can't remove the editor body content right after loading the editor.
Upvotes: 0
Reputation: 598
In your app module replace the module as bellow
TinymceModule.withConfig({'auto_focus':false,})
Upvotes: 1