# How to know if the composer being used for editing topic,creating topic or replying a topic

**URL:** <https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339>\
**Category:** Development\
**Created:** [2017 年3 月 4 日 08:44 UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339 "2017-03-04T08:44:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
发布日期： [2017 年3 月 7 日 15:06 UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339/3 "2017-03-07T15:06:30Z")

</div>

When I try to inspect the ember component, I find the action to be null.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/2/3255ba02947938e0ca66e58c5ed674e3cb00ee15.png)

In the above screenshot, I inspected the properties for the editor composer. The action is null.

I surely might be doing something wrong, or looking in wrong component. Can you please tell me which component did u inspect?

Why do I need to know if the composer is for create topic or replying?  
Because I want to add a custom field in composer, which will be used only when creating topic, not for replying..

---

_[View the full topic](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339)._
