'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();
Solution 1:[1]
In your app module replace the module as bellow
TinymceModule.withConfig({'auto_focus':false,})
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ketan pradhan |
Solution 2 | Muhammad Arshad |