You are going to update to use the new client side Discourse Plugin API. In particular you will want to use addPostMenuButton.
For a larger example complete with backwards compatibility, you can check out the solved button plugin code.
You are going to update to use the new client side Discourse Plugin API. In particular you will want to use addPostMenuButton.
For a larger example complete with backwards compatibility, you can check out the solved button plugin code.