mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 15:54:05 +08:00
19 lines
404 B
JavaScript
19 lines
404 B
JavaScript
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();
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
|