TinyMCE And Signed s3 Images

I’m looking into TinyMCE to be able to create blog posts one thing I’m not entirely sure on is how to manage retrieving and using private images in the space as the link will expire every 2 hours and need a newly generated link.

Maybe some how finding and replacing any media tags like img on the server side

Or is there a way in which we could run raw html through a action and it will detect any signed urls and then refresh the sign keeping the raw html structure the same as before but with a freshly signed images

Just to add I’m using Digital Ocean Spaces

@patrick any chance you could have a look at this when you get into looking at TinyMCE implementation for Wappler?