# TypeError: Discourse.Dialect.postProcessText is not a function

**URL:** <https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963>\
**Category:** Development\
**Created:** [September 10, 2016, 10:35am UTC](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963 "2016-09-10T10:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [September 10, 2016, 10:35am UTC](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963/1 "2016-09-10T10:35:15Z")

</div>

I’m writing my first plugin for Discourse, modeled after the plugin in [this tutorial](https://meta.discourse.org/t/plugin-tutorial-1-how-to-manipulate-the-text-in-the-composer/10925), but I’m encountering an error.

In my error log, I see the error “TypeError: Discourse.Dialect.postProcessText is not a function” for [this server-side file](https://github.com/critcola/discourse-overwatch-hero-icons/blob/master/assets/javascripts/overwatch-hero-icons.js).

Any thoughts on this? Is it that the function is too long?

---

_[View the full topic](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963)._
