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

11 lines
291 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: ->
2013-02-07 10:45:24 -05:00
# AWFUL but I can't figure out how to call a controller method from outside
2013-02-05 14:16:51 -05:00
# my app?
Discourse.__container__.lookup('controller:composer').importQuote()
]