discourse/app/assets/javascripts/pagedown_custom.js.coffee

11 lines
292 B
CoffeeScript
Raw Normal View History

2013-02-05 14:16:51 -05:00
window.PagedownCustom =
insertButtons: [
id: 'wmd-quote-post'
description: 'Quote Post'
execute: ->
# AWFUL but I can't figure out how to call a controller method from outside
# my app?
Discourse.__container__.lookup('controller:composer').importQuote()
]