Autofocus plugin

Autofocus plugin - set focus inside the editor after reload

const editor = Jodit.make('#editor', {
  autofocus: true,
  cursorAfterAutofocus: 'start', // 'end';
  saveSelectionOnBlur: true
});

focus

focus(editor): void

Parameters

Name Type
editor IJodit

Returns

void

Defined in

jodit/src/plugins/focus/focus.ts:41