With the DecoratedHtml change (lovely change, thanks for that!), I played around decorateCookedElement, and it seems to append into the positional element.
Is there a way to insert it before or after the positional element?
I have the impression it’s forced to append here:
https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/decorated-html.gjs#L48-L56
I guess a workaround would be to create a wrapper first and then call renderGlimmer on it.
Or is there a better way?
david
(David Taylor)
February 14, 2025, 7:20pm
2
The only options Ember provide for in-element are
the default, which replaces the entire contents of the element
insertBefore=null, which appends the component as the last child of the element
Unfortunately, other values for insertBefore are not supported. (ember forum reference )
So yup, if you need different positioning, a wrapper is the way to go
3 Likes
system
(system)
Closed
March 16, 2025, 7:20pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.