How to Disable Auto Focus in TypeScript DOCX Editor
28 Aug 20261 minute to read
TypeScript DOCX Editor (Document Editor) gets focused automatically when the page loads. If you want the DOCX Editor not to be focused automatically, it can be customized.
The following example illustrates how to disable auto focus in the DocumentEditorContainer.
let container: DocumentEditorContainer = new DocumentEditorContainer({ enableToolbar: true, height: '590px', enableAutoFocus: false });The default value of the
enableAutoFocusproperty istrue.
The following example illustrates how to disable auto focus in the DocumentEditor.
let editor: DocumentEditor = new DocumentEditor({ height: '590px', enableAutoFocus: false });The default value of the
enableAutoFocusproperty istrue.