Why does the new composer not trigger the «previewRefreshed» event anymore after the composer preview renders?

composer

(Discourse.PRO) #1

The event was in the old composer:


(Robin Ward) #2

It is still triggered but it got moved into the composer-editor component.

Note that you shouldn’t have to observe that event yourself since there is a decorateCooked API that handles this for you. I did notice a bug in it though after seeing this post and it was fixed here:

https://github.com/discourse/discourse/commit/395d01c5f97a3ad04c9cc702fa9e6afb78d0a688

Do you need to observe the event without decorateCooked?