discourse/app/assets/javascripts/admin/components/highlighted-code.js.es6
2018-06-15 17:03:24 +02:00

11 lines
284 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.$());
}
});