# 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:** 2

<div class="post-metadata">

作者： ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
发布日期： [2017 年3 月 5 日 12:58 UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339/2 "2017-03-05T12:58:04Z")

</div>

I’m not sure I follow where you’re looking at the model, but the model for the composer component has an `action` attribute. That’s what you’re looking for.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/b/4bbbc117f3e0351882e5fb699376d9748a415ce5.jpg)

---

_[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)._
