mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 00:41:16 +08:00
FEATURE: Quote reply at cursor
This commit is contained in:
@ -70,6 +70,11 @@ export default Discourse.Controller.extend({
|
||||
if (c) { c.appendText(text); }
|
||||
},
|
||||
|
||||
appendBlockAtCursor: function(text) {
|
||||
var c = this.get('model');
|
||||
if (c) { c.appendText(text, $('#wmd-input').caret(), {block: true}); }
|
||||
},
|
||||
|
||||
categories: function() {
|
||||
return Discourse.Category.list();
|
||||
}.property(),
|
||||
|
Reference in New Issue
Block a user