diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js index 1a779714664..5e367038936 100644 --- a/app/assets/javascripts/discourse/app/components/d-editor.js +++ b/app/assets/javascripts/discourse/app/components/d-editor.js @@ -919,7 +919,7 @@ export default Component.extend(TextareaTextManipulation, { observer.observe(document.querySelector(".d-editor-preview"), { childList: true, - subtree: false, + subtree: true, attributes: false, }); diff --git a/app/assets/javascripts/discourse/tests/acceptance/composer-onebox-test.js b/app/assets/javascripts/discourse/tests/acceptance/composer-onebox-test.js index 221f61083c5..fd5f09d1d43 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/composer-onebox-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/composer-onebox-test.js @@ -31,12 +31,12 @@ http://www.example.com/has-title.html assert.equal( queryAll(".d-editor-preview:visible").html().trim(), ` -
+
This is another test This is a great title
http://www.example.com/no-title.html
This is another test http://www.example.com/no-title.html
This is another test This is a great title
this is a category hashtag #bug
-this is a tag hashtag #monkey
- -uppercase hashtag works too #BUG, #BUG
` + `this is a category hashtag #bug
+this is a tag hashtag #monkey
+ +` ); }); });