From 92d63b59a7683e6bcec5e6016bdfb66b279fdeaf Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 May 2017 16:54:32 -0400 Subject: [PATCH] FIX: Videos were missing from expanded quotes --- app/assets/javascripts/discourse/widgets/post-cooked.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 index 38784a3941a..2786f7df734 100644 --- a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 @@ -134,6 +134,8 @@ export default class PostCooked { ajax(`/posts/by_number/${topicId}/${postId}`).then(result => { const div = $("
"); div.html(result.cooked); + _decorators.forEach(cb => cb(div, this.decoratorHelper)); + div.highlight(originalText, {caseSensitive: true, element: 'span', className: 'highlighted'}); $blockQuote.showHtml(div, 'fast', finished); }).catch((e) => {