How to Disable Auto Focus in Angular DOCX Editor

27 Aug 20261 minute to read

Angular DOCX Editor (Document Editor) gets focused automatically when the page loads. If you do not want the DOCX Editor to be focused automatically, you can customize this behavior.

The following example illustrates how to disable the auto focus in DocumentEditorContainer.

<ejs-documenteditorcontainer [enableAutoFocus]=false></ejs-documenteditorcontainer>

The default value of enableAutoFocus property is true.

Disable auto focus in DocumentEditor

The following example illustrates how to disable the auto focus in DocumentEditor.

<ejs-documenteditor [enableAutoFocus]=false></ejs-documenteditor>

The default value of enableAutoFocus property is true.