mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 19:29:51 +00:00
A lot of plugins are using "api.decorateCookedElement" to decorate the cooked preview. Some of those plugins, like the "image-grid" ([grid]...[/grid]), changes the DOM. We have to call them _before_ morphing otherwise, there's no real point in morphing the preview. The missing piece was triggering the "decorate-non-stream-cooked-element" application event.