discourse/app/assets/javascripts/admin/components/highlighted-code.js.es6
2015-08-20 15:56:05 -04:00

12 lines
286 B
JavaScript

import { on, observes } from 'ember-addons/ember-computed-decorators';
import highlightSyntax from 'discourse/lib/highlight-syntax';
export default Ember.Component.extend({
@on('didInsertElement')
@observes('code')
_refresh: function() {
highlightSyntax(this.$());
}
});