mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 18:50:55 +08: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.