mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:02:24 +08:00
15 lines
393 B
JavaScript
15 lines
393 B
JavaScript
/*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
|
|
return Discourse.__container__.lookup('controller:composer').send('importQuote');
|
|
}
|
|
}
|
|
]
|
|
};
|