mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
/**
|
|
Inserts a rich code editor
|
|
|
|
@method aceEditor
|
|
@for Handlebars
|
|
**/
|
|
Ember.Handlebars.registerHelper('aceEditor', function(options) {
|
|
var hash = options.hash,
|
|
types = options.hashTypes;
|
|
|
|
Discourse.Utilities.normalizeHash(hash, types);
|
|
|
|
return Ember.Handlebars.helpers.view.call(this, Discourse.AceEditorView, options);
|
|
}); |