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

11 lines
291 B
CoffeeScript
Raw Normal View History

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