This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/admin/helpers/admin_helpers.js

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);
});