discourse/app/assets/javascripts/pagedown_custom.js

15 lines
393 B
JavaScript
Raw Normal View History

/*global Markdown:true*/
window.PagedownCustom = {
insertButtons: [
{
id: 'wmd-quote-post',
description: I18n.t("composer.quote_post_title"),
execute: function() {
// AWFUL but I can't figure out how to call a controller method from outside our app
2013-09-16 14:08:55 -04:00
return Discourse.__container__.lookup('controller:composer').send('importQuote');
}
}
]
};