Ketan Pradhan
Ketan Pradhan

Reputation: 71

Prevent auto focus on tinymce in angular 2

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

Answers (2)

Muhammad Arshad
Muhammad Arshad

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

ketan pradhan
ketan pradhan

Reputation: 598

In your app module replace the module as bellow

TinymceModule.withConfig({'auto_focus':false,})

Upvotes: 1

Related Questions