2013-03-05 14:33:27 -05:00
|
|
|
/*global Markdown:true*/
|
2013-02-20 13:15:50 -05:00
|
|
|
|
2013-03-05 14:33:27 -05:00
|
|
|
window.PagedownCustom = {
|
|
|
|
insertButtons: [
|
|
|
|
{
|
|
|
|
id: 'wmd-quote-post',
|
2013-04-10 14:32:28 -04:00
|
|
|
description: I18n.t("js.composer.quote_post_title"),
|
2013-03-05 14:33:27 -05:00
|
|
|
execute: function() {
|
|
|
|
// AWFUL but I can't figure out how to call a controller method from outside our app
|
|
|
|
return Discourse.__container__.lookup('controller:composer').importQuote();
|
2013-02-20 13:15:50 -05:00
|
|
|
}
|
2013-03-05 14:33:27 -05:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|