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

-

+

`.trim() ); }); diff --git a/app/assets/javascripts/discourse/tests/acceptance/hashtags-test.js b/app/assets/javascripts/discourse/tests/acceptance/hashtags-test.js index fd71dbb5dbb..1524ac1e3e7 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/hashtags-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/hashtags-test.js @@ -34,10 +34,10 @@ uppercase hashtag works too #BUG, #BUG::tag` assert.equal( queryAll(".d-editor-preview:visible").html().trim(), - `

this is a category hashtag #bug

-

this is a tag hashtag #monkey

-

category vs tag: #bug vs #bug

-

uppercase hashtag works too #BUG, #BUG

` + `

this is a category hashtag #bug

+

this is a tag hashtag #monkey

+

category vs tag: #bug vs #bug

+

uppercase hashtag works too #BUG, #BUG

` ); }); });