Search results

Disable auto focus in Document editor in JavaScript (ES5) DocumentEditor control

08 May 2023 / 1 minute to read

Document Editor gets focused automatically when the page loads. If you want the Document editor not to be focused automatically it can be customized.

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

Copied to clipboard
let container: DocumentEditorContainer = new DocumentEditorContainer({ enableToolbar: true, height: '590px', enableAutoFocus: false});

Note: Default value of enableAutoFocus property is true.

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

Copied to clipboard
let editor: DocumentEditor = new DocumentEditor({ height: '590px', enableAutoFocus: false});

Note: Default value of enableAutoFocus property is true.