# 使用预填信息打开 Composer

**URL:** <https://meta.discourse.org/t/open-composer-with-prefilled-information/82915>\
**Category:** Development\
**Created:** [2018 年3 月 13 日 16:53 UTC](https://meta.discourse.org/t/open-composer-with-prefilled-information/82915 "2018-03-13T16:53:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![duranmla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/duranmla/32/109295_2.png) [@duranmla](https://meta.discourse.org/u/duranmla)\
发布日期： [2018 年3 月 13 日 16:53 UTC](https://meta.discourse.org/t/open-composer-with-prefilled-information/82915/1 "2018-03-13T16:53:47Z")

</div>

Hello,

I am facing the issue to open the composer with a prefilled information within it, or in case that it is too complex maybe just create a topic from a custom component/widget. **The context of the issue is that I have a custom UI that expect to be used to create a Topic** so there are two scenarios we can use that UI to prefill the composer and finally create the topic of embedded all things needed to create the topic from that custom UI. **Keep in mind that we want also to have the composer as it is.**

I saw I useful idea here: [https://meta.discourse.org/t/accessing-the-createtopic-action-while-on-a-topic-route/26423](https://meta.discourse.org/t/accessing-the-createtopic-action-while-on-a-topic-route/26423) where the author ends up by `reopen` the `ApplicationRoute` and then define his own action, it looks like I can do something like that but not sure where is the right place to write that code; I can define a new custom action to be called on my custom UI button that sends the action of `open` to the _Composer Controller_ with some arguments.

Cheers.

---

_[View the full topic](https://meta.discourse.org/t/open-composer-with-prefilled-information/82915)._
