# 제목이 미리 채워지면 편집기에 포커스

**URL:** <https://meta.discourse.org/t/focus-the-editor-when-title-is-pre-filled/311449>\
**Category:** Development\
**Created:** [6월 10, 2024, 9:10오후 UTC](https://meta.discourse.org/t/focus-the-editor-when-title-is-pre-filled/311449 "2024-06-10T21:10:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Onlyanegg](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@Onlyanegg](https://meta.discourse.org/u/Onlyanegg)\
**Post date:** [6월 10, 2024, 9:10오후 UTC](https://meta.discourse.org/t/focus-the-editor-when-title-is-pre-filled/311449/1 "2024-06-10T21:10:26Z")

</div>

이런 형태의 URL을 가지고 있습니다:

> [https://forum.example.com/new-message?groupname=moderators&title=Help+me+with+some+task+please](https://forum.example.com/new-message?groupname=moderators&title=Help+me+with+some+task+please)

이 링크를 제 사이트에 배치하여 사용자가 포럼으로 이동해 질문을 할 수 있도록 합니다. title 값에 다양한 내용을 넣어 사용자가 궁금해하는 주제를 제목에 미리 입력해 주는데, 에디터가 포커스되기를 원합니다.

이를 어떻게 수정할 수 있는지 알아보던 중 focusTarget 정의가 포함된 composer.js 파일을 발견했습니다. title이 전달된다면 이 동작을 지원하도록 수정하는 것은 꽤 쉬울 것 같습니다.

문제는 focusTarget이 실제로 어디서 호출되는지 찾을 수 없다는 것입니다. 저는 수년 동안 프로그래밍을 해왔지만 Ember는 처음이고, JavaScript 프로그래밍도 상대적으로 적게 해왔습니다.

이 문제를 어떻게 접근해야 할지 조언을 주시면 감사하겠습니다 (적절한 매뉴얼에 대한 포인터가 포함된 rtfm도 환영합니다).

감사합니다.

---

_[View the full topic](https://meta.discourse.org/t/focus-the-editor-when-title-is-pre-filled/311449)._
