diff --git a/web/src/settings_linkifiers.ts b/web/src/settings_linkifiers.ts index 7f52e4fdb9..30480f4642 100644 --- a/web/src/settings_linkifiers.ts +++ b/web/src/settings_linkifiers.ts @@ -16,6 +16,7 @@ import * as scroll_util from "./scroll_util"; import * as settings_ui from "./settings_ui"; import {current_user, realm} from "./state_data"; import * as ui_report from "./ui_report"; +import * as ui_util from "./ui_util"; type RealmLinkifiers = typeof realm.realm_linkifiers; @@ -106,6 +107,9 @@ function open_linkifier_edit_form(linkifier_id: number): void { on_click() { submit_linkifier_form(dialog_widget_id); }, + on_shown() { + ui_util.place_caret_at_end($("#edit-linkifier-pattern")[0]!); + }, }); }