mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
f661fa609e
http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
20 lines
433 B
JavaScript
20 lines
433 B
JavaScript
(function() {
|
|
|
|
window.PagedownCustom = {
|
|
insertButtons: [
|
|
{
|
|
id: 'wmd-quote-post',
|
|
description: 'Quote Post',
|
|
execute: function() {
|
|
/* AWFUL but I can't figure out how to call a controller method from outside
|
|
*/
|
|
|
|
/* my app?
|
|
*/
|
|
return Discourse.__container__.lookup('controller:composer').importQuote();
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
}).call(this);
|