I'm looking to add some more flexibility to content in our CMS.
I'd really like to be able to use a replacement variable in TinyMCE behind the scenes, like this (massively simplified):
Check out my cool image
[img:cool_image.jpg]
Isn't it great
And then, when the the content is rendered on the frontend, our server does a find and replace and produces:
Check out my cool image
<img src="//images/cool_image.jpg">
Isn't it great
But I would like the TinyMCE editor to render the replace as well so that our users can see the image while editing content.
It would of course still save as:
Check out my cool image
[img:cool_image.jpg]
Isn't it great
The step I am struggling with is getting TinyMCE to display and save differently.
Is this possible? Or is there a plugin to do so?