discourse/app/assets/javascripts/admin/components/highlighted-code.js.es6

11 lines
284 B
Plaintext
Raw Normal View History

2018-06-15 23:03:24 +08:00
import { on, observes } from "ember-addons/ember-computed-decorators";
import highlightSyntax from "discourse/lib/highlight-syntax";
export default Ember.Component.extend({
2018-06-15 23:03:24 +08:00
@on("didInsertElement")
@observes("code")
_refresh: function() {
highlightSyntax(this.$());
}
});