On Tuesday, November 10, 2020 at 4:01:01 PM UTC-8 aiki...@gmail.com wrote:

> Interesting! Thanks ;) I see that it adds the Image macro on the client 
> side... if I read correctly.
>
> Is there a hook that I could use that would be like a "pre-render" for the 
> ticket description? So I could add the image macro from the server side 
> rather than client side? Not sure what the right interface might be to look 
> at...
>

If you don't need access to the Request object, then 
IAttachmentChangeListener:
https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.attachment.IAttachmentChangeListener

Otherwise IRequestFilter or IAttachmentManipulator:
https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.attachment.IAttachmentManipulator

I would guess you can probably do it in IAttachmentChangeListener without 
needing to access the requests object. The attachment.parent object will 
give you the ticket id and you can modify the Ticket description.

Ryan 
_______________________________________________
th-users mailing list
th-users@lists.trac-hacks.org
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to