discourse/app/assets/javascripts/pagedown_custom.js

15 lines
390 B
JavaScript
Raw Normal View History

/*global Markdown:true*/
window.PagedownCustom = {
insertButtons: [
{
id: 'wmd-quote-post',
2013-04-11 02:32:28 +08:00
description: I18n.t("js.composer.quote_post_title"),
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();
}
}
]
};