mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: replace all occurances in preview not only first
This commit is contained in:
@@ -14,7 +14,7 @@ export default Ember.Component.extend(BufferedContent, ScrollTop, {
|
|||||||
const preview = this.get('setting.preview');
|
const preview = this.get('setting.preview');
|
||||||
if (preview) {
|
if (preview) {
|
||||||
return new Handlebars.SafeString("<div class='preview'>" +
|
return new Handlebars.SafeString("<div class='preview'>" +
|
||||||
preview.replace("{{value}}", this.get('buffered.value')) +
|
preview.replace(/\{\{value\}\}/g, this.get('buffered.value')) +
|
||||||
"</div>");
|
"</div>");
|
||||||
}
|
}
|
||||||
}.property('buffered.value'),
|
}.property('buffered.value'),
|
||||||
|
|||||||
Reference in New Issue
Block a user