FIX: replace all occurances in preview not only first

This commit is contained in:
Sam 2015-08-07 16:52:21 +10:00
parent fd63d89753
commit 415a3ff0de
1 changed files with 1 additions and 1 deletions

View File

@ -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'),