Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.3
-
None
-
4.03
-
Description
In the WikiRendererFactory it assembles renderable components and sets them into the atlassian-renderer code.
However it puts all the system ones first followed by the plugin ones.
This is bad because the rendering code relies on a token replacement mechanism to be ran last. This is done via com.atlassian.renderer.v2.components.TokenRendererComponent.
But if a plugin uses this facility
context.getRenderedContentStore().addInline("<span>" + foo + "</span>")
Then the token will not be replaced as intended because the TokenRendererComponent is run before plugins components and not after.
I think this shows that no one has written many renderable components in JIRA. It works but not the way it is intended to work.