How to Disable Auto Focus in React DOCX Editor
27 Aug 20261 minute to read
React 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.
<DocumentEditorContainerComponent id="container" height={'590px'} enableAutoFocus={false} />The default value of
enableAutoFocusproperty istrue.
Disable auto focus in DocumentEditor
The following example illustrates how to disable the auto focus in DocumentEditor.
<DocumentEditorComponent id="container" height={'590px'} enableAutoFocus={false}/>The default value of
enableAutoFocusproperty istrue.