13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
import highlightText from "discourse/lib/highlight-text";
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: "span",
|
|
|
|
_highlightOnInsert: function() {
|
|
const term = this.highlight;
|
|
highlightText(this.$(), term);
|
|
}
|
|
.observes("highlight")
|
|
.on("didInsertElement")
|
|
});
|