FIX: replace all occurances in preview not only first
This commit is contained in:
parent
fd63d89753
commit
415a3ff0de
|
@ -14,7 +14,7 @@ export default Ember.Component.extend(BufferedContent, ScrollTop, {
|
|||
const preview = this.get('setting.preview');
|
||||
if (preview) {
|
||||
return new Handlebars.SafeString("<div class='preview'>" +
|
||||
preview.replace("{{value}}", this.get('buffered.value')) +
|
||||
preview.replace(/\{\{value\}\}/g, this.get('buffered.value')) +
|
||||
"</div>");
|
||||
}
|
||||
}.property('buffered.value'),
|
||||
|
|
Loading…
Reference in New Issue